
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700;900&family=Nunito:wght@400;700;900&family=Jua&display=swap');

:root {
    /* Premium Pastel Neon Colors */
    --primary-color: #FF9F1C;
    --secondary-color: #FF477E;
    --accent-1: #2EC4B6;
    --accent-2: #3A86FF;
    --bg-gradient: linear-gradient(135deg, #FFF5EB 0%, #E0FBFC 50%, #F3E8FF 100%);
    --text-color: #2D3748;
    --white: #ffffff;
    
    /* Modern Effects */
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --glow: 0 0 25px rgba(255, 71, 126, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);
    --border-radius: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', 'Noto Sans KR', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo, .badge, .btn {
    font-family: 'Jua', 'Nunito', 'Noto Sans KR', sans-serif;
    letter-spacing: 0.5px;
}

/* Glassmorphism Navbar (Floating Pill) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin: 1.5rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    position: sticky;
    top: 20px;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 5px rgba(255,71,126,0.2);
}

.magic-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-btn {
    background: transparent;
    border: 2px solid transparent;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-btn:hover {
    background-color: rgba(255, 159, 28, 0.15);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--glow);
    border-color: transparent;
}

select#language-selector {
    outline: none;
    font-family: 'Nunito', 'Noto Sans KR', sans-serif;
    font-weight: bold;
    color: var(--text-color);
}

/* Main Container */
#app-container {
    padding: 1rem 5%;
    min-height: calc(100vh - 120px);
}

.view-section {
    display: none;
    animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-section.active {
    display: block;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Premium 3D Buttons */
.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: all 0.5s;
}

.btn:hover::after {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(2px) scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    color: white;
}

/* Home View Hero (Glass Card) */
.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 4rem;
    position: relative;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

.hero h1 strong {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(255,71,126,0.2);
}

.hero p {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    color: #4a5568;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Feature Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 6px solid var(--accent-1);
    position: relative;
    overflow: hidden;
}

.feature-card:nth-child(2) { border-color: var(--primary-color); }
.feature-card:nth-child(3) { border-color: var(--secondary-color); }

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    animation: float 4s infinite ease-in-out;
}

.feature-card:nth-child(2) .feature-icon { animation-delay: 0.5s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: 1s; }

.feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: #718096;
    font-size: 1.05rem;
}

/* Interactive Views */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--accent-2);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #4a5568;
}

.interactive-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    align-items: flex-start;
}

/* Video Wrapper (Glowing Magic Border) */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 720px;
    height: 480px;
    background: #1A202C;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2), 0 0 40px rgba(46, 196, 182, 0.3);
    border: 8px solid rgba(255,255,255,0.9);
    transition: transform 0.4s ease;
}

.video-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.25), 0 0 60px rgba(255, 71, 126, 0.4);
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    pointer-events: none;
}

#magic-effect-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
}

.cam-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-size: 1.5rem;
    padding: 1.2rem 3rem;
}

/* Status Panels (Glassmorphism) */
.status-panel {
    flex: 1;
    min-width: 320px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: var(--glass-border);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.status-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.mission-box {
    background: rgba(46, 196, 182, 0.1);
    border-left: 5px solid var(--accent-1);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 0 16px 16px 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

/* AR Words */
.word-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.5rem;
}

.word-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 800;
    font-size: 1.3rem;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(255, 71, 126, 0.3);
}

@keyframes popIn {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Animal Selector */
.animal-selector {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    padding: 1.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

/* Pricing View */
.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--white);
    padding: 3.5rem 2.5rem;
    border-radius: 40px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 380px;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
}

.pricing-card.featured {
    transform: scale(1.05);
    background: linear-gradient(180deg, #ffffff 0%, #FFF5EB 100%);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(255, 159, 28, 0.2);
}

.badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(58, 134, 255, 0.3);
}

.badge.highlight {
    background: var(--secondary-color);
    box-shadow: var(--glow);
}

.price {
    font-size: 3rem;
    font-weight: 900;
    margin: 2rem 0;
    color: var(--text-color);
}

.price span {
    font-size: 1.2rem;
    color: #718096;
    font-weight: normal;
}

/* Sticker Board */
.sticker-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    padding: 18px 30px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 1.3rem;
    box-shadow: 0 10px 25px rgba(46, 196, 182, 0.4);
    cursor: pointer;
    z-index: 1000;
    font-family: 'Jua', sans-serif;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255,255,255,0.5);
}
.sticker-floating-btn:hover { 
    transform: scale(1.1) translateY(-5px); 
    box-shadow: 0 15px 35px rgba(46, 196, 182, 0.6);
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }

.modal-content {
    background: var(--white);
    padding: 4rem;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.show .modal-content {
    transform: scale(1);
}

.sticker-grid {
    display: flex; gap: 20px; margin: 2.5rem 0; justify-content: center;
}
.sticker-slot {
    width: 70px; height: 70px;
    border: 4px dashed #CBD5E0;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 3rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.sticker-slot.filled {
    border: 4px solid var(--accent-1);
    background: rgba(46, 196, 182, 0.15);
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 0 20px rgba(46, 196, 182, 0.4);
}

/* Footer Styles */
.site-footer {
    background-color: var(--white);
    color: #4A5568;
    text-align: center;
    padding: 50px 20px;
    margin-top: 80px;
    font-size: 1rem;
    border-top: 1px solid #E2E8F0;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 700;
}
.footer-links a:hover { text-decoration: underline; }

/* Mobile Optimization */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 15px; padding: 15px; margin: 10px; border-radius: 25px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .hero { padding: 4rem 1.5rem; }
    .hero h1 { font-size: 2.5rem; }
    .video-wrapper { height: 350px; border-width: 4px; border-radius: 20px; }
    .sticker-floating-btn { bottom: 15px; right: 15px; font-size: 1.1rem; padding: 12px 20px; }
    .modal-content { padding: 2.5rem; width: 95%; }
    .sticker-slot { width: 50px; height: 50px; font-size: 2rem; }
}


/* AR Photo Booth Styles */
.photo-floating-btn {
    position: fixed;
    bottom: 100px; /* Above sticker button */
    right: 30px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 18px 30px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 1.3rem;
    box-shadow: 0 10px 25px rgba(255, 71, 126, 0.4);
    cursor: pointer;
    z-index: 1000;
    font-family: 'Jua', 'Nunito', sans-serif;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255,255,255,0.5);
    border-top: 3px solid rgba(255,255,255,0.8);
}

.photo-floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 71, 126, 0.6);
}

.photo-floating-btn:active {
    transform: scale(0.95);
}

.photo-modal-box {
    width: 90%;
    max-width: 700px;
}

@media (max-width: 768px) {
    .photo-floating-btn {
        bottom: 80px;
        right: 15px;
        font-size: 1.1rem;
        padding: 12px 20px;
    }
}
