* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    /* overflow-x: hidden; */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* 스크롤바 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #080808;
}

::-webkit-scrollbar-thumb {
    background: #E86E17;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff7a28;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #E86E17 #080808;
}

/* 드래그시 브랜드컬러 */
::selection {
  background: rgba(232, 110, 23, 0.50);
  color: #fff;
}
::-moz-selection {
  background: rgba(232, 110, 23, 0.50);
  color: #fff;
}

body {
    background: linear-gradient(0deg, rgb(12, 7, 4, 1) 0%, rgba(8, 8, 8, 1) 100%);
    color: #fff;
    font-family: 'pretendard', sans-serif;
    overflow-x: hidden;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    margin: 0;
    cursor: none !important;
    
}

/* 모든 요소에 적용 */
a, button, .project-item, .header span, .project-btn, .theme-toggle {
    cursor: none !important;
}

/* 메인 물방울 커서 */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E86E17; /* 브랜드 컬러 */
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(0, 0, 0);
}

/* 꼬리 물방울들 */
.custom-cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E86E17;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.9;
}


.date {
    font-size: 14px;
    line-height: 20px;
    margin: 0;
}

/* 컬러 스타일 */
.grey {
    color: #999;
}

.brand {
    color: #E86E17;
}

/* 섹션 공통 스타일 */
section {
    width: 100%;
    height: auto;
    position: relative;
}

.contents-title {
    font-weight: 200;
    font-size: 28px;
    line-height: 40px;
}

.small-title {
    font-weight: 300;
    font-size: 14px;
    line-height: 22px;
}

.header {
    position: fixed;
    top: 0px;
    display: flex;
    justify-content: center;
    padding: 20px 40px;
    font-size: 14px;
    font-weight: 400;
    backdrop-filter: blur(5px);
    background-color: rgb(8, 8, 8, 0.7);
    width: 100%;
    gap: 28px;
    z-index: 999;
}

.header span {
    cursor: pointer;
    transition: color 0.3s ease;
}

.header span:hover {
    color: #E86E17;
}

.header span.active {
    color: #E86E17;
}

/* --------------
섹션1
----------------- */

#section1 {
    height: 3000px; /* 슬로건 애니메이션 공간 확보 */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 타이틀 섹션 위치 조정 */
.title-section {
    text-align: center;
    margin: 160px 0 100px;
    z-index: 10;
    position: relative;
}

.subtitle {
    margin-top: 0;
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 300;
    letter-spacing: 0;
}

.main-title {
    font-size: 52px;
    font-weight: 500;
    line-height: 68px;
    letter-spacing: -1px;
}

.eye-container {
    position: relative;
    top: 400px;
    width: 0px;
    height: 0px;
}

/* 가장 큰 눈 */
.eye {
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1280px;
    height: 700px;
    background-color: #333;
    border: 3px solid #3f3f3f;
    overflow: hidden;
    z-index: 100;
    border-radius: 99%;
    filter: drop-shadow(0 0 30px rgba(232, 110, 23, 0.35));
}

.eye2 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 758px;
    height: 758px;
    background: #222222;
    border: 2px solid #444;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease-out;
    z-index: 200;
    transition: all 0.2s ease-out;
    overflow: hidden;
}

/* 3번째 */
.eyeball {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 468px;
    height: 468px;
    background: #111111;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease-out;
    z-index: 300;
    transition: all 0.2s ease-out;
}

/* 4번째 */
.pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: #d4d4d4;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 400;
    transition: all 0.4s ease-out;
}

/* 원형텍스트 */
.circular-text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 706px;
    /* 원래 크기로 복구 */
    height: 706px;
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
    z-index: 500;
    transition: all 0.2s ease-out;
    /* 부드러운 전환 추가 */
}

.circular-text svg {
    width: 100%;
    height: 100%;
}

.circular-text text {
    fill: #D4D4D4;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 4px;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.eye::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2px;
    right: -2px;
    bottom: 0;
    border-radius: 50%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Slogan */
.slogan-wrap {
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
  margin-top: 1200px;
  width: min(800px, 90vw);
  aspect-ratio: 1 / 1;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  place-items: center;
  text-align: center;
}

.slogan-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(232, 110, 23, 0.6);
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.slogan-circle.active {
  opacity: 1;
}

.slogan-content {
  position: relative;
  z-index: 1;
  padding: clamp(18px, 4vw, 44px);
  max-width: 90%;
}

.slogan-title {
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.22);
  transition: color .5s ease;
}

.slogan-title.active {
  color: #fff;
}

.slogan {
  margin-top: clamp(12px, 2vw, 20px);
  font-size: clamp(14px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.6;
}

.slogan .line {
  display: inline-block;
  color: rgba(255, 255, 255, 0.16);
  transition: color .5s ease;
}

.slogan .line.active {
  color: #cfcfcf;
}

/* --------------
섹션2
----------------- */

#section2 {
    height: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 0 0 120px 0;
    z-index: 2;
    margin-top: 320px;
    /* background: linear-gradient(0deg, rgb(12, 7, 4) 0%, rgba(8, 8, 8, 1) 100%); */
}

.profile-container {
    display: flex;
    width: 100%;
    gap: 240px;
    margin-top: 160px;
    justify-content: center;
}

/* 왼쪽 프로필 영역 */
.profile-left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
    width: 30%;
    max-width: 380px;
    gap: 28px;
}

.profile-img {
    /* margin-bottom: 24px; */
}

.profile-img img {
    width: 200px;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
}

.profile-intro .small-title {
    margin-bottom: 8px;
}

.profile-intro {
    margin-bottom: 40px;
}

.profile-title {
    font-weight: 400;
    font-size: 24px;
    line-height: 34px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(8px); 
    transition: opacity 0.5s ease-in, transform 0.5s ease;
}

.profile-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.profile-left .info-item{
    margin-bottom: 8px;
}

/* 오른쪽 정보 영역 */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 56px;
    width: 100%;
}

.info-item {
    display: flex;
    gap: 40px;
}

.info-item .small-title {
    width: 100px;
    flex-shrink: 0;
    margin: 0;
}

.info-content {
    flex: 1;
}

.info-content .body {
    margin-bottom: 4px;
    font-size: 16px;
    line-height: 24px;
}

.info-content .date {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 20px;
}

.exp-item {
    margin-bottom: 20px;
}

.exp-item:last-child {
    margin-bottom: 0;
}

/* 스킬 아이콘 */
.skill-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    transition: transform 0.5s ease;
}

.skill-icons img {
    width: 40px;
    height: 40px;
}

.skill-icons img:hover {
    filter: brightness(0) saturate(100%) invert(45%) sepia(84%) saturate(2076%) hue-rotate(360deg) brightness(97%) contrast(92%);
    transform: scale(1.05);
}


/* --------------
섹션3
----------------- */

#section3 {
    height: auto;
    width: 100%;
    background: linear-gradient(0deg, rgb(17, 11, 7) 100%, rgba(8, 8, 8, 1) 0%);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 120px 200px 120px 80px;
    margin-top: 200px;
    /* border-radius: 80px 80px 0 0; */
    border-top:rgba(232, 110, 23, 0.4) 1px solid;
    box-shadow: 
    0px 0px 400px rgba(232, 110, 23, 0.4);
    }

.contents-container {
    display: flex;
    align-items: center;
}

/* 오른쪽 프로젝트 리스트 */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-item {
    display: flex;
    cursor: default;
    gap: 60px;
    transition: all 0.3s ease;
    padding: 20px 32px;
}

.project-item:hover .project-number{
    color: #E86E17;
    font-weight: 200;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-2px);
    border-radius:12px;
}

.project-number {
    font-size: 24px;
    font-weight: 100;
    width: 40px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    color: #eee;
}

/* 프로젝트 버튼들 */
.project-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.project-btn {
    display: inline-block;
    padding: 8px 16px;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 300;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.project-info {
    flex: 1;
}

.project-category,
.project-participation {
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0;
}

.project-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 4px;
    line-height: 28px;
}


.project-date {
    font-size: 13px;
    font-weight: 300;
}

/* 왼쪽 Contents 타이틀 */
.contents-title-area {
    flex: 0 0 auto;
    text-align: right;
    position: relative;
}

.contents-main-title {
    font-size: 72px;
    font-weight: 300;
    line-height: 92px;
    /* margin-top: 120px; */
    letter-spacing: 0px;
}

/* 태블릿 (1200px 이하) */
@media (max-width: 1208px) {

    /* 섹션1 */

    .slogan-wrap{
    width: 62%;
}


    /* 섹션2 */
    #section2 {
        padding: 0 40px 60px 40px;
    }

    .profile-container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        width: 60%;
        gap: 40px;
        margin-top: 0px;
    }

    .profile-left .info-item{
        margin-bottom: 20px;
    }


    /* 왼쪽 프로필 영역 */
    .profile-left {
        width: 100%;
    }

    .profile-img img {
        width: 160px;
        height: 200px;
    }

    .profile-title{
        margin-bottom: 56px;
    }

    .info-item {
        gap: 20px;
        text-align: left;
    }

    /* 섹션3 */
    #section3 {
        padding: 70px 40px 40px;
        margin-top: 120px;
        box-shadow:
        0px 0px 140px rgba(232, 110, 23, 0.388);
    }

    .contents-container {
        flex-direction: column;
        gap: 80px;
        align-items: center;
    }

    .contents-main-title {
        font-size: 48px;
        text-align: center;
    }

    .project-item {
        gap: 20px;
    }

    .project-number {
        font-size: 20px;
        width: 30px;
    }

    .project-title {
        font-size: 18px;
        line-height: 24px;
    }
}

/* 모바일 (780px 이하) */
@media (max-width: 780px) {

    /* 섹션1 */

    .subtitle {
        font-size: 18px;
        margin: 0 0 4px;
    }

    .main-title {
        font-size: 40px;
        line-height: 56px;
    }

    .eye {
        width: 1000px;
        height: 600px;
    }

    .eye2 {
        width: 550px;
        height: 550px;
    }

    .eyeball {
        width: 420px;
        height: 420px;
    }

    .circular-text {
        width: 580px;
        height: 580px;
    }

    .pupil {
        width: 100px;
        height: 100px;
    }

    .slogan-wrap{
        width: 75%;
    }

    /* 섹션2 */
    #section2 {
        padding: 72px 20px 40px 20px;
    }

    .profile-container {
        width: 80%;
        gap: 36px;
    }

    .profile-img img {
        width: 140px;
        height: 180px;
    }

    .profile-title {
        margin-bottom: 24px;
    }

    .profile-left .info-item {
        margin-bottom: 0;
    }

    .info-section {
        gap: 32px;
    }

    .exp-item {
        margin-bottom: 16px;
    }

    .skill-icons {
        gap: 12px;
    }

    .skill-icons img {
        width: 32px;
        height: 32px;
    }

    /* 섹션3 */
    #section3 {
        padding: 60px 20px;
        flex-direction: column;
        gap: 56px;
        box-sizing: border-box;
    }

    .contents-main-title {
        font-size: 40px;
        margin-top: 0;
    }

    .project-list {
        gap: 40px;
    }

    .project-item {
        gap: 16px;
        box-sizing: border-box;
    }

    .project-number {
        font-size: 18px;
        width: 24px;
    }

    .project-title {
        font-size: 18px;
        line-height: 28px;
    }

    .project-category,
    .project-date {
        font-size: 12px;
    }

    .project-subtitle {
        font-size: 13px;
    }
}

/* 모바일 (48px 이하) */
@media (max-width: 480px) {

    section {
        width: 100vw;
        max-width: 100vw;
    }

    header{
        position: fixed;
    }
    
    body {
        overflow-x: hidden !important; 
    }
    
    html {
        overflow-x: hidden !important;
    }

    .cursor {
        display: none;
    }
    
    #section1 {
        transform: scale(1);
        transform-origin: center top;
        height: 1200px;
    }

    .subtitle {
        font-size: 16px;
        margin: 0 0 4px;
    }

    .main-title {
        font-size: 32px;
        line-height: 44px;
    }

 .eye-container {
        position: relative;
        top: 300px;
        left: 0;
        transform: none;
        width: 0px;
        height: 0px;
        display: flex;
        justify-content: center;
    }

    .eye {
        position: absolute;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        width: 700px;
        height: 400px; 
    }

    .eye2 {
        width: 380px;
        height: 380px;
    }

    .eyeball {
        width: 280px;
        height: 280px;
    }

    .circular-text {
        width: 400px;
        height: 400px;
    }


  .slogan-wrap {
    margin-top: 1600px;
  }

    /* 섹션2 */
    #section2 {
        padding: 60px 24px 40px 24px;
        margin-top: 120px;
    }

.profile-container {
        margin-top: 200px;
        width: 100%;
    }

    .profile-img img {
        width: 140px;
        height: 180px;
    }

    .profile-title {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 0px;
    }

    .profile-slogan-title {
    font-size: 16px;
    }

    
    .profile-slogan {
    font-size: 14px;
    line-height: 20px;
    margin-top: 8px;
    }

    .skill-icons {
        gap: 12px;
    }

    .skill-icons img {
        width: 32px;
        height: 32px;
    }

    /* 섹션3 */
    #section3 {
        margin-top: 60px;
        padding: 60px 24px;
        box-shadow:
        0px 0px 120px rgba(232, 110, 23, 0.388);
    }

    .contents-main-title {
        font-size: 32px;
        line-height: 42px;
    }

    .project-item {
        width: 100%;
        min-width: 300px;
        gap: 8px;
    }

    .project-number {
        font-size: 18px;
        width: 24px;
    }

    .project-title {
        font-size: 18px;
        line-height: 28px;
    }

    .project-category,
    .project-date {
        font-size: 12px;
    }

    .project-subtitle {
        font-size: 13px;
    }

}
