@font-face {
    font-family: 'Outfit';
    src: url('Outfit/Outfit-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

/* ==========================================================================
   Design System & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; /* 기본 마우스 커서 숨김 */
}

/* 빨간색 점 커스텀 커서 스타일 정의 */
.custom-cursor {
    width: 8px;
    height: 8px;
    background-color: #ff453a;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    will-change: left, top;
}

body {
    background-color: #fbfbfa; /* 뉴트럴 오프화이트 톤 */
    /* 미세한 종이 질감 노이즈 패턴 오버레이 */
    background-image: 
        radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 0),
        radial-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 0);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    font-family: 'Outfit', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: #111111;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 전체 레이아웃 정렬 */
.workspace-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 100vh;
    padding: 40px 20px 20px 20px;
}

/* ==========================================================================
   Printer Container (Main Element)
   ========================================================================== */
.printer-container {
    position: relative;
    width: 900px; /* 프린터 이미지의 원본 비율에 맞는 정밀 가로폭 설정 */
    height: 700px;
    margin: auto;
    display: flex;
    justify-content: center;
}

/* 프린터 본체 이미지 */
.printer-body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 10;
    pointer-events: none; /* 클릭 이벤트가 하단 요소나 버튼으로 통과되게 설정 */
}

/* 프린터 전면 로고 (logo motion_red.gif) */
.printer-logo {
    position: absolute;
    top: 186px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: auto;
    z-index: 11;
    pointer-events: none; /* 클릭 이벤트가 하단 요소로 통과되도록 설정 */
}

/* ==========================================================================
   Display Bar (Marquee Effect)
   ========================================================================== */
.display-bar {
    position: absolute;
    top: 79px; /* 검은 디스플레이 창의 세로 위치 */
    left: 230px; /* 가로 위치를 8px 좌측으로 이동 보정 */
    width: 300px;
    height: 40px;
    background: transparent; /* 검정 박스 제거 및 투명 처리 */
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 15;
}

.marquee-text {
    white-space: nowrap;
    font-family: 'Outfit', 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 11px;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: -0.2px;
    padding-left: 0; /* 진입 즉시 왼쪽에서부터 시작하도록 설정 */
    display: inline-block;
    animation: marquee-right-to-left 28s linear infinite;
    text-shadow: 0 0 2px rgba(255,255,255,0.6);
}

/* 우에서 좌로 자연스럽게 흐르는 텍스트 애니메이션 */
@keyframes marquee-right-to-left {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* ==========================================================================
   Receipt Paper (Print Interaction)
   ========================================================================== */
.receipt-paper {
    position: absolute;
    top: 284px; /* 인쇄용지 슬롯의 y축 시작점 */
    left: 326px; /* 가로 시작점 */
    width: 248px;
    background-image: url('home/paper.png'); /* paper.png 이미지 배경 적용 */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 12; /* 프린터all 이미지 위로 올라와 비치지 않게 z-index 튜닝 */
    
    /* 초기 상태: 종이가 숨겨진 상태 */
    height: 0;
    overflow: hidden;
    
    /* 영수증이 출력되는 애니메이션: 1.8초 */
    animation: print-receipt 1.8s cubic-bezier(0.15, 0.85, 0.3, 1) forwards;
}

/* 영수증 내부 콘텐츠 영역 */
.receipt-content {
    padding: 26px 20px 32px 20px;
    opacity: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* 출력이 마무리될 즈음(1.3초 후) 부드럽게 등장 */
    animation: fade-in-content 0.6s ease-out 1.3s forwards;
}

/* 영수증 내부 구분선 (임의 점선 감춤) */
.receipt-line {
    display: none;
}

.receipt-header {
    text-align: center;
    border-bottom: 1.5px solid #111111; /* menu 밑 조금 두꺼운 실선을 1.5px로 변경 */
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.receipt-label {
    font-size: 15px;
    text-transform: lowercase;
    letter-spacing: 2px;
    font-weight: 700; /* 조금 더 선명하도록 볼드 적용 */
    color: #111111; /* 타이포 블랙으로 변경 */
}

/* 영수증 메뉴 리스트 */
.receipt-menu-list {
    list-style: none;
}

.receipt-menu-list li {
    margin: 18px 0;
}

.receipt-menu-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #222222;
    border-bottom: 1px solid #e0dfdb; /* portfolio, about us, contact 밑 얇은 실선 */
    padding-bottom: 8px; /* 텍스트와 실선 사이 여백 */
    transition: color 0.2s ease, border-color 0.2s ease; /* 밑선은 제자리에서 색상만 트랜지션 */
}

.receipt-menu-list a .en {
    font-size: 15px;
    font-weight: 500;
    text-transform: lowercase;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: left center; /* 텍스트 시작 지점을 기준으로 안정적으로 확대 */
}

.receipt-menu-list a .ko {
    font-size: 11px;
    font-weight: 400;
    color: #888888;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: right center; /* 텍스트 끝 지점을 기준으로 안정적으로 확대 */
}

/* 메뉴 호버링 인터랙션 (밑선 색상 전환 및 글자 제자리 확대) */
.receipt-menu-list a:hover {
    color: #ff453a; /* 세련된 레드 포인트 */
    border-color: #ff453a; /* 밑선도 동시에 빨간색으로 변경 (이동 없음) */
}

.receipt-menu-list a:hover .ko {
    color: #ff453a;
}

/* 메뉴 호버 시 텍스트만 제자리에서 부드럽게 4% 확대 */
.receipt-menu-list a:hover .en,
.receipt-menu-list a:hover .ko {
    transform: scale(1.04);
}

/* 영수증 하단 슬로건 */
.receipt-slogan {
    text-align: center;
    margin-top: 15px;
}

.receipt-slogan h3 {
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 4px;
}

.receipt-slogan p {
    font-size: 10px;
    color: #888888;
    text-transform: lowercase;
}

/* ==========================================================================
   Animations Keyframes
   ========================================================================== */

/* 영수증이 슬롯 밑으로 서서히 출력되는 키프레임 */
@keyframes print-receipt {
    0% {
        height: 0;
    }
    100% {
        height: 380px; /* 기획안 빌지 사이즈에 맞춘 최적 높이 */
    }
}

/* 영수증 글자가 나타나는 키프레임 */
@keyframes fade-in-content {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Footer (Bottom Information)
   ========================================================================== */
.footer {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 상단 가로 줄 맞춤 정렬 */
    border-top: 1px solid #e0dfdb;
    padding-top: 20px;
    margin-top: 30px;
}

.footer-left .footer-brand {
    font-size: 16px;
    font-weight: 600;
    color: #111111;
    line-height: 1.0; /* 상단 정렬 세밀 동기화 */
    margin-top: 2px; /* 중앙 10px 텍스트 상단에 맞물리도록 미세 튜닝 */
}

.footer-center {
    font-size: 10px;
    color: #777777;
    line-height: 1.5; /* 텍스트 라인 높이 표준화 */
    text-align: left;
}

.footer-center p {
    margin: 0 0 4px 0; /* 단락 마진 조율 */
}

.footer-center .copyright {
    color: #aaaaaa;
    margin-top: 4px;
}

.footer-right .instagram-link {
    font-size: 12px;
    color: #555555;
    text-decoration: none;
    border-bottom: 1px solid #555555;
    padding-bottom: 2px;
    line-height: 1.0;
    margin-top: 4px; /* 중앙 첫 줄 상단 높이에 맞물리도록 미세 튜닝 */
    display: inline-block;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-right .instagram-link:hover {
    color: #ff453a;
    border-color: #ff453a;
}

/* ==========================================================================
   Responsive Settings (Mobile / Tablet)
   ========================================================================== */
@media (max-width: 950px) {
    .workspace-wrapper {
        padding: 20px 10px;
        justify-content: center;
    }
    .printer-container {
        transform: scale(0.8);
        transform-origin: top center;
        margin-bottom: -100px;
    }
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    .footer-center {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .printer-container {
        transform: scale(0.6);
        margin-bottom: -200px;
    }
}

@media (max-width: 480px) {
    .printer-container {
        transform: scale(0.42);
        margin-bottom: -320px;
    }
}
