@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

* {
    cursor: none !important;
}

html, body {
    cursor: none !important;
}

body {
    background: #FFFFFF;
    margin: 0;
    padding: 0;
    color: #2A2A2A;
    overflow-x: hidden;
    font-family: 'Pretendard', sans-serif;
    cursor: none !important;
}

/* 커스텀 마우스 커서 */
.custom-cursor {
    position: fixed;
    width: 180px;
    height: 180px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.custom-cursor svg {
    width: 100%;
    height: 100%;
    animation: rotateCursor 8s linear infinite;
    animation-play-state: running;
}

.custom-cursor.hover svg {
    animation-duration: 4s;
}

.custom-cursor.click svg {
    animation-duration: 2s;
}

.custom-cursor.dark-bg svg text {
    fill: #FFFFFF;
}

.custom-cursor.light-bg svg text {
    fill: #3866FF;
}

@keyframes rotateCursor {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cursor-dot {
    position: fixed;
    width: 18px;
    height: 22px;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%) rotate(-25deg);
}

.cursor-dot svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

/* 스크롤 진행도 인디케이터 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #3866FF, #2F6F59);
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(56, 102, 255, 0.5);
}

/* 스크롤 애니메이션 */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* 마그네틱 카드 효과 */
.magnetic-card {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.magnetic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(56, 102, 255, 0.05) 0%, rgba(47, 111, 89, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.magnetic-card:hover::before {
    opacity: 1;
}

.magnetic-card > * {
    position: relative;
    z-index: 1;
}

/* 헤더 스크롤 효과 */
.header {
    transition: all 0.3s ease;
    color: #ffffff;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    color: #2A2A2A;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-logo-white {
    display: block;
}

.header-logo-black {
    display: none;
}

.header.scrolled .header-logo-white {
    display: none;
}

.header.scrolled .header-logo-black {
    display: block;
}

.header.scrolled h1,
.header.scrolled a,
.header.scrolled button:not(.bg-primary-blue) {
    color: #2A2A2A !important;
}

.header.scrolled button.border-white\/50 {
    border-color: #D1D5DB !important;
}

/* 사이드바 */
.sidebar-wrapper {
    width: 320px;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    z-index: 50;
    transform: translateX(320px); 
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 1px solid #e5e7eb;
    display: none;
}

.sidebar-wrapper.open {
    transform: translateX(0);
}

.sidebar-content {
    height: 100%;
    overflow-y: auto;
    background: #ffffff;
    padding: 1.5rem;
}

.sidebar-toggle-btn {
    position: fixed;
    right: 24px; 
    top: 50%;
    transform: translateY(-50%);
    z-index: 60; 
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.3s ease;
}

.sidebar-wrapper.open ~ .sidebar-toggle-btn {
    right: 344px; 
    transform: translateY(-50%) rotate(45deg);
}

.sidebar-toggle-btn svg {
    width: 20px;
    height: 20px;
    color: #374151;
}

@media (min-width: 1024px) {
    .sidebar-wrapper {
        display: block; 
    }
    body.sidebar-open {
        overflow: hidden;
    }
}

/* 카드 스타일 */
.card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover {
    box-shadow: 0 10px 30px rgba(56, 102, 255, 0.15);
    transform: translateY(-5px);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-blue {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-purple {
    background: #E0E7FF;
    color: #3730A3;
}

.badge-green {
    background: #D1FAE5;
    color: #065F46;
}

.badge-yellow {
    background: #FEF3C7;
    color: #92400E;
}

/* 프로젝트 테이블 */
.project-table {
    width: 100%;
    border-collapse: collapse;
}

.project-table thead {
    background: #F9FAFB;
}

.project-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    border-bottom: 1px solid #E5E7EB;
}

.project-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #F3F4F6;
    font-size: 14px;
}

.project-table tbody tr {
    transition: all 0.3s ease;
}

.project-table tbody tr:hover {
    background: #F9FAFB;
    transform: translateX(5px);
}

.project-table tbody tr:last-child td {
    border-bottom: none;
}

.project-name {
    font-weight: 600;
    color: #111827;
}

.project-info {
    color: #6B7280;
    font-size: 13px;
}

/* 탭 버튼 */
.tab-button {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #6B7280;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3866FF;
    transition: width 0.3s ease;
}

.tab-button.active {
    color: #3866FF;
}

.tab-button.active::before {
    width: 100%;
}

.tab-content {
    display: none !important;
}

.tab-content.active {
    display: block !important;
}

.tab-content.active.grid {
    display: grid !important;
}

/* 버튼 글로우 효과 */
.glow-button {
    position: relative;
    overflow: hidden;
}

.glow-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.glow-button:hover::before {
    width: 300px;
    height: 300px;
}

/* 숫자 카운트업 */
.count-up {
    font-variant-numeric: tabular-nums;
}

/* 파티클 배경 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(56, 102, 255, 0.3);
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* 그라데이션 텍스트 */
.gradient-text {
    background: linear-gradient(135deg, #3866FF 0%, #2F6F59 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* FAQ 토글 애니메이션 */
.faq-toggle {
    transition: all 0.3s ease;
}

.faq-toggle:hover {
    color: #3866FF;
}

.faq-toggle svg {
    transition: transform 0.3s ease;
}

.faq-content {
    transition: all 0.3s ease;
}

