@font-face {
    font-family: 'GmarketSansMedium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* CONTACTS 활성화된 스타일 */
.profile-link-active {
    position: relative;
    color: #00CFFF; /* 형광 파란색 텍스트 고정 */
    pointer-events: none; /* 클릭 및 롤오버 효과 비활성화 */
    text-decoration: none;
}

/* CONTACTS 링크에 둥근 흰색 배경 추가 */
.profile-link-active::before {
    content: ""; /* 가상 요소 생성 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-212%, -50%); /* 가운데 정렬 (수정)*/
    width: 18%; /* 글자 크기에 맞춘 배경 크기(수정) */
    height: 1.5em; /* 높이 설정 */
    background-color: white; /* 흰색 배경 */
    border-radius: 50px; /* 둥근 모서리 */
    z-index: -1; /* 텍스트 뒤에 배경을 놓기 위해 */
    padding: 5px 15px;
}

/* 전체 레이아웃 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #111;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../source/BG.png'); /* 배경 이미지 경로 설정 */
    background-size: cover;
    background-position: center;
    opacity: 0.2; /* 배경 이미지 투명도 조절 */
}


/* 16:9 비율 컨테이너 */
.container {
    position: relative;
    width: 100%;
    max-width: 1920px;
    aspect-ratio: 16 / 9;
}

/* 고정된 헤더 스타일 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 70px 40px;
    z-index: 20; /* 다른 요소 위에 표시 */
}

/* 로고 스타일 */
.logo img {
    width: 60px; /* 로고 크기 조절 */
        transform: translateY(20px); /* 아래에서 시작 */
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0s; /* 첫 번째로 나타남 */
    transition: transform 0.3s ease; /* 롤오버 애니메이션 */
}

.menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* 메뉴를 오른쪽 정렬 */
    gap: 20px;
    padding-top: 5vh;
    font-family: 'GmarketSansMedium'; /* 메뉴 전체에 폰트 적용 */
    font-size: 0.8em; /* 폰트 크기 조절 */
}

.menu li {
    position: relative;
}

.menu a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5em;
    transition: color 0.3s;
}


/* 수정 필요 */

.contact-link {
    color: #FF3000; /* 기본 주황색 */
    
}
.contacts-line {
background-color: #FF3000;
}

.portfolio-link{
    color: #FF3000; /* 기본 주황색 */
}

.portfolio-line {
    background-color: #FF3000;
}

.profile-line {
    background-color: #00CFFF; 
}


/* 수정 필요 */

/* 라인 스타일 */
.line {
    display: inline-block;
    height: 1px;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.profile-line {
    width: 350px; /* PROFILE의 라인 길이 */
}

.portfolio-line {
    width: 210px; /* PORTFOLIO의 라인 길이 */
}

.contacts-line {
    width: 90px; /* CONTACTS의 라인 길이 */
}

/* 롤오버 시 색상 변경 */
.menu a:hover {
    color: #00CFFF; /* 형광 파란색 */
}

.menu a:hover .line {
    background-color: #00CFFF; /* 형광 파란색으로 변경 */
}


/* 공통 부모 컨테이너 설정 */
.container {
    position: relative;
    width: 100%;
    max-width: 1920px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

/* 이미지 스타일 및 애니메이션 */
.profile_img_1 {
    position: absolute;
    top: -1.8%;
    left: 0;
    width: 100%;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px); /* 아래에서 시작 */
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0s; /* 첫 번째로 나타남 */
    transition: transform 0.3s ease; /* 롤오버 애니메이션 */
}

.profile_img_2 {
    position: absolute;
    top: -1.8%;
    left: 0;
    width: 100%;
    z-index: 3;
    opacity: 0;
    transform: translateY(20px); /* 아래에서 시작 */
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.7s; /* 두 번째로 나타남 */
    transition: transform 0.3s ease; /* 롤오버 애니메이션 */
}

.profile_img_3 {
    position: absolute;
    top: -1.8%;
    left: 0;
    width: 100%;
    z-index: 4;
    opacity: 0;
    transform: translateY(20px); /* 아래에서 시작 */
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.4s; /* 세 번째로 나타남 */
    transition: transform 0.3s ease; /* 롤오버 애니메이션 */
}

.profile_img_4 {
    position: absolute;
    top: -1.8%;
    left: 0;
    width: 100%;
    z-index: 5;
    opacity: 0;
    transform: translateY(20px); /* 아래에서 시작 */
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 1.7s; /* 네 번째로 나타남 */
    transition: transform 0.3s ease; /* 롤오버 애니메이션 */
}


/* 롤오버 시 확대 효과 */
.contact_img_2:hover,
.contact_img_3:hover,
.contact_img_4:hover {
    transform: scale(1.1); /* 10% 확대 */
}

/* 애니메이션 정의 */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px); /* 아래에서 시작 */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* 원래 위치로 */
    }
}