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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 스크롤 애니메이션 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 부드러운 스크롤 */
html {
    scroll-behavior: smooth;
}

/* 네비게이션 활성 상태 */
.nav-active {
    color: #60a5fa !important;
    font-weight: 600;
}

/* 카드 호버 효과 */
.card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* 그라데이션 텍스트 */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 커스텀 스크롤바 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e3a8a;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #60a5fa;
}

/* 폼 포커스 효과 */
.input:focus, .select:focus, .textarea:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* 버튼 애니메이션 */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 모달 애니메이션 */
.modal[open] .modal-box {
    animation: fadeInUp 0.3s ease-out;
}

/* 반응형 텍스트 크기 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

/* 로딩 애니메이션 */
.loading-spinner {
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    border-top: 3px solid #3b82f6;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 공지사항 중요 표시 */
.notice-important {
    border-left: 4px solid #ef4444;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1), transparent);
}

/* 포트폴리오 갤러리 호버 효과 */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(29, 78, 216, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-content {
    opacity: 1;
}

/* 섹션 구분선 */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    margin: 2rem 0;
}

/* 타이핑 애니메이션 */
.typing-animation {
    border-right: 2px solid #3b82f6;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: #3b82f6; }
    51%, 100% { border-color: transparent; }
}

/* 프린트 스타일 */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        background: white !important;
    }
}