/* TINROBOT Studio - 공통 스타일 */

/* 폰트 로딩 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

/* CSS 변수 */
:root {
    --glass-bg: rgba(20, 20, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-color: #7C3AED;
    --text-color: #ffffff;
    --subtext-color: rgba(255, 255, 255, 0.7);
    --card-bg: rgba(30, 30, 40, 0.6);
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
}

/* 글로벌 스타일 */
html {
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    margin: 0;
    padding: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #0F0F13;
    color: var(--text-color);
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.6;
    width: 100%;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* 컨테이너 */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

/* 글래스모피즘 효과 */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 12px;
}

/* 헤더 스타일 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.6s ease;
    transform: translateY(0);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    margin: 20px;
    border-radius: 20px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: flex-end;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
    gap: 10px;
}

.logo-img {
    height: 32px;
    width: auto;
    margin-bottom: 2px;
    display: inline-block;
}

.logo::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    bottom: 2px;
    right: -10px;
}

/* 기존 네비게이션 메뉴 숨김 */
nav#navMenu {
    display: none !important;
}

/* 모바일 메뉴 아이콘 */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 2;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 풀스크린 네비게이션 스타일 */
.fullscreen-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 19, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0s 0.6s;
    overflow: hidden;
}

.fullscreen-nav.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0s;
}

.nav-content {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin: 30px 0;
    overflow: hidden;
}

.nav-links a {
    font-size: 60px;
    font-weight: 700;
    line-height: 1;
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
}

.fullscreen-nav.active .nav-links a {
    animation: slideUp 0.6s ease forwards;
}

.fullscreen-nav.active .nav-links li:nth-child(1) a { animation-delay: 0.2s; }
.fullscreen-nav.active .nav-links li:nth-child(2) a { animation-delay: 0.4s; }
.fullscreen-nav.active .nav-links li:nth-child(3) a { animation-delay: 0.6s; }
.fullscreen-nav.active .nav-links li:nth-child(4) a { animation-delay: 0.8s; }

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-footer {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
}

.fullscreen-nav.active .nav-footer {
    animation: slideUp 0.6s ease forwards 0.5s;
}

.nav-lang {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--subtext-color);
}

.lang-option {
    cursor: pointer;
    transition: color 0.3s ease;
}

.lang-option:hover,
.lang-option.active {
    color: var(--accent-color);
}

/* 언어별 텍스트 표시/숨김 */
.ko-text {
    display: none !important;
}

.en-text {
    display: inline;
}

body.ko .en-text {
    display: none !important;
}

body.ko .ko-text {
    display: inline !important;
}

/* 버튼 내부 텍스트 처리 */
.btn .ko-text,
.btn-link .ko-text {
    display: none !important;
}

.btn .en-text,
.btn-link .en-text {
    display: inline;
}

body.ko .btn .en-text,
body.ko .btn-link .en-text {
    display: none !important;
}

body.ko .btn .ko-text,
body.ko .btn-link .ko-text {
    display: inline !important;
}

/* 기본 모바일 대응 */
@media (max-width: 768px) {
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    header .container {
        padding: 0;
    }
    
    .header-container {
        padding: 20px 30px;
        margin: 0;
        width: 100vw;
        max-width: 100vw;
        position: relative;
        min-height: auto;
        align-items: center;
        justify-content: space-between;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 0;
        box-sizing: border-box;
    }
    
    .logo {
        font-size: 18px;
        gap: 8px;
    }
    
    .logo-img {
        height: 22px;
    }
    
    .logo::after {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1002;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 25px;
        box-sizing: border-box;
    }
    
    html, body {
        overflow-x: hidden !important;
    }
    
    header {
        padding: 0 !important;
        margin: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    header .container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }
    
    .header-container {
        padding: 18px 20px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        min-height: 65px;
        justify-content: space-between;
        background: rgba(20, 20, 30, 0.95) !important;
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        box-sizing: border-box !important;
    }
    
    .logo {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .logo-img {
        height: 20px;
    }
    
    .menu-toggle {
        width: 26px;
        height: 18px;
    }
    
    .menu-toggle span {
        height: 2px;
    }
}

@media (max-width: 400px) {
    .header-container {
        padding: 15px 20px;
        margin: 0;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .logo-img {
        height: 20px;
    }
}

.ai-preference-wrapper {
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ai-preference {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-pref-row {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.ai-pref-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    min-height: 70px;
    width: 100%;
}

.ai-pref-btn:hover, .ai-pref-btn.active {
    transform: translateY(-1px);
}

.pref-content {
    text-align: center;
}

.pref-content .en-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
    color: rgba(255,255,255,0.7);
    line-height: 1.2;
    text-transform: uppercase;
}

.pref-content .ko-text {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 0;
    color: rgba(255,255,255,0.5);
    line-height: 1.2;
}

@media (max-width: 1024px) {
    .ai-preference-wrapper {
        max-width: 800px;
    }
    
    .ai-pref-row {
        flex-direction: column;
        width: 100%;
    }
    
    .ai-pref-btn {
        width: 100%;
        min-height: 50px;
    }
}

@media (max-width: 640px) {
    .ai-preference-wrapper {
        max-width: 400px;
    }
    
    .ai-pref-btn {
        padding: 10px;
        min-height: 55px;
    }
    
    .pref-content .en-text {
        font-size: 14px;
    }
    
    .pref-content .ko-text {
        font-size: 13px;
    }
}

.back-button {
    position: fixed;
    top: 120px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.2px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    z-index: 9999;
    cursor: pointer;
    pointer-events: all;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateX(-4px);
}

.back-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

@media (max-width: 768px) {
    .back-button {
        top: 100px;
        left: 24px;
        padding: 10px 16px;
        font-size: 13px;
        gap: 8px;
    }
    
    .back-button svg {
        width: 14px;
        height: 14px;
    }
}

/* 페이드업 애니메이션 */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
    visibility: hidden;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.fade-up-delay-1 {
    transition-delay: 0.3s;
}

.fade-up-delay-2 {
    transition-delay: 0.6s;
}

.fade-up-delay-3 {
    transition-delay: 0.9s;
}

/* 파비콘 스타일 */
.favicon-wrapper {
    width: 32px;
    height: 32px;
    background: var(--glass-bg);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.favicon-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.favicon-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    bottom: 4px;
    right: 4px;
}

/* 문의하기 폼 스타일 */
.contact-form-wrapper {
    margin-top: 40px;
    padding: 30px;
    border-radius: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: var(--subtext-color);
}

.form-group input,
.form-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-group select option {
    background: #1E1E2E;
    color: var(--text-color);
}

.submit-btn {
    width: 100%;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #6D28D9;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
}

/* 알림창 스타일 */
.notification {
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* Contact Button Styles */
.contact-button-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 30px;
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: var(--accent-color-dark);
    transform: translateY(-2px);
}

.contact-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.contact-button:hover svg {
    transform: translateX(4px);
}

/* Hide English/Korean text based on language selection */
body:not(.ko) .ko-text,
body.ko .en-text {
    display: none;
} 