@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
    --primary: #111827;
    --secondary: #1f2937;
    --accent: #23d79b;
    --accent-dark: #059669;
    --text: #ffffff;
    --text-secondary: #d1d5db;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
}

body {
    background-color: var(--primary);
    color: var(--text);
    overflow-x: hidden;
    height: 100vh;
}

.container {
	width:100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* 헤더 스타일 */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* 히어로 섹션 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(35, 215, 155, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    position: relative;
}

.hero h1 .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: wordFadeIn 0.5s forwards;
}

@keyframes wordFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 .word:nth-child(1) { animation-delay: 0.7s; }
.hero h1 .word:nth-child(2) { animation-delay: 0.9s; }
.hero h1 .word:nth-child(3) { animation-delay: 1.1s; }
.hero h1 .word:nth-child(4) { animation-delay: 1.3s; }
.hero h1 .word:nth-child(5) { animation-delay: 1.5s; }

.hero h1 span {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero h1 span::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: rgba(16, 185, 129, 0.2);
    right: -10px;
    top: -10px;
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1); opacity: 0.8; }
}

.text-highlight {
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    width: 0;
    height: 30%;
    bottom: 5px;
    left: 0;
    background-color: rgba(35, 215, 155, 0.5);
    z-index: -1;
    animation: highlight 1s forwards 2s;
}

@keyframes highlight {
    to { width: 100%; }
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 1s forwards 1.8s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.highlight {
    color: var(--text);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeIn 1s forwards 2.2s;
}

.secondary-button {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--text);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.secondary-button:hover {
    background-color: rgba(16, 185, 129, 0.2);
    transform: translateY(-3px);
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 90%;
    z-index: 5;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* 그래픽 요소 */
.graphic-element {
    position: absolute;
    z-index: 1;
}

.graphic-circle {
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0) 70%);
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -50px;
    left: -100px;
}

.circle-2 {
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -100px;
    opacity: 0.6;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 30%;
    left: 20%;
    opacity: 0.4;
}

.graphic-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0) 0%, rgba(16, 185, 129, 0.5) 50%, rgba(16, 185, 129, 0) 100%);
}

.line-1 {
    top: 15%;
    transform: rotate(-5deg);
}

.line-2 {
    top: 45%;
    transform: rotate(2deg);
}

.line-3 {
    top: 75%;
    transform: rotate(-3deg);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    z-index: 0;
    overflow: hidden;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

/* 애니메이션 배경 */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.1);
    animation: float 15s linear infinite;
    opacity: 0.5;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

.shape-1 {
    width: 80px;
    height: 80px;
    bottom: -100px;
    left: 10%;
    animation-duration: 20s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    bottom: -100px;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: -100px;
    left: 30%;
    animation-delay: 5s;
    animation-duration: 15s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: -100px;
    left: 40%;
    animation-delay: 1s;
    animation-duration: 25s;
}

.shape-5 {
    width: 50px;
    height: 50px;
    bottom: -100px;
    left: 60%;
    animation-delay: 3s;
    animation-duration: 22s;
}

.shape-6 {
    width: 75px;
    height: 75px;
    bottom: -100px;
    left: 80%;
    animation-delay: 6s;
    animation-duration: 18s;
}

/* 물방울 효과 */
#bubbleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* 특별 효과: 리플 효과 */
.ripple-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
    transform: scale(0);
    animation: rippleEffect 2s linear;
}

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* 미디어 쿼리 */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero-image {
        width: 45%;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-image {
        opacity: 0.3;
        width: 60%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
}



/* 포트폴리오 섹션 기본 스타일 */
.portfolio {
    background-color: var(--secondary);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* 배경 효과 스타일 - 메인 테마와 어울리게 수정 */
.portfolio-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top left, rgba(35, 215, 155, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(35, 215, 155, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(35, 215, 155, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(35, 215, 155, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

.bg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-lines .line {
    position: absolute;
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(35, 215, 155, 0.1), transparent);
    opacity: 0.3;
}

.bg-lines .line-1 {
    top: 15%;
    animation: lineMove 15s infinite alternate;
}

.bg-lines .line-2 {
    top: 45%;
    animation: lineMove 20s infinite alternate-reverse;
}

.bg-lines .line-3 {
    top: 75%;
    animation: lineMove 18s infinite alternate;
}

@keyframes lineMove {
    0% {
        transform: translateX(-10%) scaleY(1);
    }
    50% {
        transform: translateX(0%) scaleY(1.5);
    }
    100% {
        transform: translateX(10%) scaleY(1);
    }
}

/* 컨테이너 스타일 */
.portfolio .container {
    position: relative;
    z-index: 2;
}

/* 포트폴리오 헤더 스타일 */
.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.title-container {
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    color: var(--text);
    background: linear-gradient(to right, #fff, #23d79b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-accent {
    position: absolute;
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
    animation: accentPulse 2s infinite alternate;
}

@keyframes accentPulse {
    0% {
        width: 40px;
        opacity: 0.7;
    }
    100% {
        width: 60px;
        opacity: 1;
    }
}

/* 필터 버튼 스타일 */
.portfolio-filters {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    max-width: 60%;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 5px;
}

.portfolio-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(35, 215, 155, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: max-content;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 215, 155, 0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.filter-btn.active, .filter-btn:hover {
    color: #fff;
    border-color: var(--accent);
    outline: none;
    transform: scale(1.05);
}

.filter-btn.active::before, .filter-btn:hover::before {
    transform: scaleX(1);
}

.filter-btn.active {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 5px 15px rgba(35, 215, 155, 0.3);
}

.filter-btn:active {
    transform: scale(0.95);
}

/* 포트폴리오 그리드 스타일 - 부드러운 전환 적용 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(200px, auto);
    grid-gap: 20px;
    transition: opacity 0.3s ease, height 0.5s ease;
    min-height: 400px;
    position: relative;
}

/* 필터링 중인 그리드에 적용 */
.portfolio-grid.filtering {
    will-change: height, opacity;
}

/* 그리드 업데이트 중 스타일 */
.portfolio-grid.updating {
    transition: height 0.5s ease;
}

/* 포트폴리오 아이템 기본 스타일 */
.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    will-change: transform, opacity;
    cursor: pointer;
    transform-origin: center center;
}

/* 필터링 중 모든 아이템에 적용할 스타일 */
.portfolio-grid.filtering .portfolio-item {
    position: absolute;
    top: var(--orig-top, 0);
    left: var(--orig-left, 0);
    width: var(--orig-width, auto);
    height: var(--orig-height, auto);
    transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.5s ease;
}

/* 표시될 아이템 스타일 */
.portfolio-grid.filtering .portfolio-item.will-show {
    opacity: 0;
    transform: scale(0.98);
    z-index: 2;
}

/* 업데이트 중 표시될 아이템 스타일 */
.portfolio-grid.updating .portfolio-item.will-show {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    opacity: 1;
    transform: scale(1);
}

/* 숨겨질 아이템 스타일 */
.portfolio-grid.filtering .portfolio-item.will-hide {
    opacity: 0;
    transform: scale(0.9);
    z-index: 1;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(35, 215, 155, 0.2);
    z-index: 3;
}

.portfolio-item:nth-child(1) {
    grid-column: span 8;
    grid-row: span 2;
    animation-delay: 0.1s;
}

.portfolio-item:nth-child(2) {
    grid-column: span 4;
    grid-row: span 1;
    animation-delay: 0.2s;
}

.portfolio-item:nth-child(3) {
    grid-column: span 4;
    grid-row: span 1;
    animation-delay: 0.3s;
}

.portfolio-item:nth-child(4) {
    grid-column: span 4;
    grid-row: span 2;
    animation-delay: 0.4s;
}

.portfolio-item:nth-child(5) {
    grid-column: span 4;
    grid-row: span 1;
    animation-delay: 0.5s;
}

.portfolio-item:nth-child(6) {
    grid-column: span 4;
    grid-row: span 1;
    animation-delay: 0.6s;
}

/* 포트폴리오 이미지 스타일 */
.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1) rotate(1deg);
}

/* 포트폴리오 오버레이 스타일 */
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2) 70%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-title {
    margin-bottom: 10px;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text);
}

.portfolio-overlay .category {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0;
    opacity: 0.9;
}

.portfolio-details {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    height: 0;
    overflow: hidden;
}

.portfolio-item:hover .portfolio-details {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    margin-top: 15px;
}

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

/* 태그 스타일 */
.tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tags span {
    background-color: rgba(35, 215, 155, 0.2);
    color: var(--text);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.portfolio-item:hover .tags span {
    background-color: rgba(35, 215, 155, 0.3);
    transform: translateY(-2px);
}

/* 포트폴리오 링크 스타일 */
.portfolio-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-right: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.portfolio-link::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.portfolio-link:hover::after {
    transform: translate(5px, -50%);
}

/* MORE VIEW 버튼 스타일 */
.portfolio-more {
    text-align: center;
    margin-top: 70px;
    padding-bottom: 20px;
}

.more-view-btn {
    position: relative;
    display: inline-block;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.more-view-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    background: transparent;
    color: white;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1rem;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateZ(20px);
}

.more-view-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    border-radius: 40px;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 20px rgba(35, 215, 155, 0.4),
                inset 0 0 0 rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.more-view-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.more-view-btn:hover .more-view-bg {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(35, 215, 155, 0.6),
                inset 0 0 10px rgba(255, 255, 255, 0.4);
}

.more-view-btn:hover .more-view-bg::before {
    left: 100%;
}

.more-view-btn:hover .more-view-content {
    letter-spacing: 3px;
}

.more-icon {
    display: inline-flex;
    transition: all 0.3s ease;
    transform: rotate(0deg);
}

.more-view-btn:hover .more-icon {
    transform: rotate(45deg);
}

.more-view-btn:active .more-view-content {
    transform: translateZ(10px) scale(0.97);
}

.more-view-btn:active .more-view-bg {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(35, 215, 155, 0.3);
}

/* 로딩 중 상태 스타일 */
.loading-state {
    display: inline-block;
    position: relative;
}

.loading-state::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    margin-left: 15px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 초기 아이템 로드 애니메이션 */
.portfolio-item {
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

/* FLIP 애니메이션 지원을 위한 GPU 가속 적용 */
.portfolio-item, 
.portfolio-img, 
.portfolio-img img,
.portfolio-overlay {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* 반응형 스타일 */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .portfolio-item:nth-child(1) {
        grid-column: span 8;
    }
    
    .portfolio-item:nth-child(2), 
    .portfolio-item:nth-child(3) {
        grid-column: span 4;
    }
    
    .portfolio-item:nth-child(4), 
    .portfolio-item:nth-child(5), 
    .portfolio-item:nth-child(6) {
        grid-column: span 4;
    }
}

@media (max-width: 992px) {
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    
    .portfolio-filters {
        max-width: 100%;
        justify-content: flex-start;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .portfolio-item:nth-child(1) {
        grid-column: span 6;
    }
    
    .portfolio-item:nth-child(2), 
    .portfolio-item:nth-child(3),
    .portfolio-item:nth-child(4),
    .portfolio-item:nth-child(5),
    .portfolio-item:nth-child(6) {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-gap: 15px;
    }
    
    .portfolio-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}