/* Adnori 커스텀 스타일 */

/* 테크 모노스페이스 폰트 */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@2.0/nanumsquare.css');

body, html {
    font-family: "JetBrains Mono", "NanumSquare", "Chivo Mono", monospace, sans-serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* 세로 텍스트 방지 */
* {
    writing-mode: horizontal-tb !important;
}

/* 따뜻한 베이지 테마 */
body {
    --pri-color: #2C2420; /* 다크 브라운 텍스트 */
    --sec-color: #F5F1ED; /* 따뜻한 베이지 배경 */
    --ter-color: #8B7D71; /* 미드 브라운 텍스트 */
    --grid-color: rgba(44, 36, 32, 0.08);
    --unde-color: rgba(44, 36, 32, 0.12);
    --accent-color: #2C2420; /* 다크 브라운 액센트 */
    --accent-secondary: #8B7D71; /* 미드 브라운 */
    --accent-tertiary: #C4B5A8; /* 라이트 브라운 */
    position: relative;
    overflow-x: hidden;
    background: #F5F1ED;
}

/* 심플한 그라디언트 배경 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(196, 181, 168, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(139, 125, 113, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #F5F1ED 0%, #EBE6E0 50%, #F5F1ED 100%);
    z-index: -2;
}

/* 그리드 라인 색상 조정 */
#bck > .grid-item {
    border-color: var(--grid-color);
}

/* 타이틀 - 다크 브라운 */
#name, #lastname {
    color: #2C2420;
    text-shadow: 0 2px 20px rgba(44, 36, 32, 0.1);
    transform-style: preserve-3d;
    font-weight: 700;
}

/* 큰 텍스트 크기 조정 - 반응형 */
@media screen and (min-width: 769px) {
    #lastname {
        font-size: clamp(4rem, 10vw, 6rem) !important;
    }
}

@media screen and (max-width: 768px) {
    #lastname {
        font-size: clamp(2.5rem, 8vw, 4rem) !important;
    }
}

#name .letter, #lastname .letter {
    display: inline-block;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

#name .letter:hover, #lastname .letter:hover {
    color: #1A1411;
    text-shadow: 0 2px 30px rgba(44, 36, 32, 0.3);
}

/* 섹션 타이틀 - 브라운 톤 */
h2 {
    color: #2C2420;
    font-weight: 600;
}

/* 인트로 텍스트 */
#intro {
    font-weight: 300;
    color: #8B7D71;
}

/* #about 섹션의 .work 레이아웃 - #project와 동일하게 */
#about > .work {
    margin-top: 10rem;
}

#about > .work > h3,
#about > .work > p,
#about > .work > ul {
    grid-column: 6/-1;
}

#about > .work > p,
#about > .work > ul {
    margin-top: 5rem;
}

/* h3 타이틀 - 미니멀 스타일 */
#about > .work > h3 {
    color: #2C2420;
    position: relative;
    padding-left: 1.5rem;
    margin-top: 0;
    font-weight: 500;
}

#about > .work > h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: #2C2420;
    border-radius: 1px;
}

/* 플랫폼 디스크립션 스타일 */
#about > .work > .platform-description {
    color: #8B7D71;
    font-weight: 300;
    line-height: 1.8;
    margin-top: 2rem !important;
    padding: 1.5rem;
    background: rgba(196, 181, 168, 0.15);
    border-left: 2px solid #8B7D71;
    border-radius: 4px;
}

/* h3 타이틀 애니메이션 완전 비활성화 */
#about > .work > h3,
#about .work > h3 {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}

#about > .work > h3 *,
#about .work > h3 * {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}

/* Hide any special characters that might appear */
#about .work > h3 .animated-word,
#about .work > h3 .animated-letter {
    display: inline !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* 리스트 아이템 - 미니멀 스타일 */
#about > .work > ul > li {
    transition: all 0.3s ease;
    padding-left: 0;
    position: relative;
    color: #8B7D71;
    font-weight: 300;
    line-height: 1.7;
}

#about > .work > ul > li:hover {
    color: #2C2420;
}

/* Success Stories - 수직 정렬로 변경 */
#sideProject .spa,
#sideProject .spb,
#sideProject .spc {
    grid-column: 6 / -1 !important;
    margin-top: 0 !important;
}

#sideProject .spb,
#sideProject .spc {
    margin-top: 5rem !important;
}

#sideProject .sp {
    transition: all 0.3s ease;
    position: relative;
}

#sideProject .sp:hover {
    transform: translateX(5px);
}

#sideProject .sp h5 {
    color: #2C2420;
    transition: color 0.3s ease;
    font-weight: 500;
}

#sideProject .sp p {
    color: #8B7D71;
    font-weight: 300;
}

#sideProject .sp .secondary {
    color: #A39588;
}

/* 이메일 섹션 강조 */
#email {
    background: linear-gradient(135deg, #2C2420 0%, #8B7D71 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* 링크 호버 효과 개선 */
a:hover > span {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

/* 네비게이션 배경 블러 개선 */
#nav {
    background: rgba(245, 241, 237, 0.9);
}

/* 푸터 스타일 개선 */
#footer {
    background: rgba(245, 241, 237, 0.7);
}

/* 스크롤 다운 인디케이터 애니메이션 */
.indic {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 로딩 상태 애니메이션 준비 */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

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

/* 슬라이드 인 애니메이션 준비 */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
}

.slide-in-up {
    opacity: 0;
    transform: translateY(50px);
}

/* 마우스 인터랙티브 그라디언트 효과 - 베이지 톤 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background:
        radial-gradient(
            800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(196, 181, 168, 0.2),
            rgba(139, 125, 113, 0.1) 30%,
            transparent 60%
        );
    z-index: 1;
    mix-blend-mode: multiply;
}

/* 플로팅 파티클 배경 */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-particles .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(44, 36, 32, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(44, 36, 32, 0.15);
}

/* 스크롤 프로그레스 바 */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #2C2420 0%, #8B7D71 50%, #C4B5A8 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* 파티클 효과를 위한 준비 */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

/* 글로우 효과 */
.glow {
    text-shadow: 0 0 10px rgba(139, 125, 113, 0.4),
                 0 0 20px rgba(139, 125, 113, 0.2),
                 0 0 30px rgba(139, 125, 113, 0.1);
}

/* 반응형 - 모바일에서는 애니메이션 간소화 */
@media screen and (max-width: 768px) {
    body::after {
        display: none;
    }

    #sideProject .sp:hover {
        transform: translateY(-4px);
    }

    .glow {
        text-shadow: none;
    }
}
