html,
body {
    color-scheme: dark !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    overflow-x: hidden !important;
    /* 가로 스크롤 절대 방지 */
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    -webkit-overflow-scrolling: touch;
    /* 부드러운 스크롤 */
}

:root {
    --bg-dark: #0a0a0c;
    --card-bg: rgba(255, 255, 255, 0.03);
    --gold: #d4af37;
    --gold-bright: #f4d03f;
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --accent: #7c3aed;
    --font-main: 'Nanum Myeongjo', serif;
    color-scheme: dark;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100vw;
    /* 뷰포트 너비를 넘지 않도록 강제 */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden !important;
    line-height: 1.6;
    color-scheme: dark;
    width: 100%;
}

/* Global Select/Input Styling */
input,
select {
    color-scheme: dark;
}

option {
    background-color: #1a1a1c;
    color: #ffffff;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 10;
    max-width: 500px;
    animation: fadeInUp 1s ease-out;
}

.brand-name {
    font-size: 4rem;
    font-weight: 800;
    color: var(--gold-bright);
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.brand-subtitle {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #000;
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.hero-character {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 90%;
    z-index: 5;
    animation: fadeInSide 1.5s ease-out;
}

.hero-character img {
    height: 100%;
    object-fit: contain;
}

.services {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gold-bright);
}

.service-card p {
    color: var(--text-dim);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSide {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mystical SIA CSS Avatar */
.sia-avatar-css {
    position: relative;
    display: inline-block;
}

.avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a0033, #4a1a66, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.6);
    border: 3px solid rgba(212, 175, 55, 0.5);
}

.avatar-symbol {
    font-size: 3.5rem;
    color: #d4af37;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    font-family: 'Nanum Myeongjo', serif;
}

.avatar-glow {
    position: absolute;
    width: 130%;
    height: 130%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

.avatar-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 215, 0, 0.8), transparent),
        radial-gradient(2px 2px at 80% 70%, rgba(255, 215, 0, 0.8), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 30% 80%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 70% 20%, rgba(124, 58, 237, 0.8), transparent);
    animation: float 6s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Content Sections Styles */
.content-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.content-title {
    font-size: 1.8rem;
    color: var(--gold-bright);
    margin-bottom: 2rem;
    font-weight: 800;
}

.content-list {
    margin-bottom: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent);
    transition: all 0.3s ease;
}

.content-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.content-item h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.content-item p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.celeb-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.celeb-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.celeb-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.celeb-info {
    flex: 1;
}

.celeb-info h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.celeb-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.content-cta {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    color: var(--gold);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-cta:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .services {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2rem;
    }

    /* Hide SIA avatar on mobile to prevent layout issues */
    .sia-avatar-css {
        display: none !important;
    }

    header {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-left: 20px;
    }

    .hero-character {
        position: relative;
        height: 50vh;
        right: auto;
    }

    .brand-name {
        font-size: 3rem;
    }
}

/* Premium Custom Overlay Picker - MOBILE STYLE */
.custom-select-container {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.custom-select-display {
    width: 100%;
    padding: 1.2rem;
    background: #111111 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.custom-select-display::after {
    content: "▼";
    font-size: 0.8rem;
    color: #d4af37;
}

/* Modal Overlay */
.picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.picker-overlay.open {
    display: flex;
}

.picker-content {
    background: #000000;
    border: 1px solid #d4af37;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: pickerPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pickerPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.picker-header {
    background: #111111;
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.picker-header h3 {
    color: #d4af37;
    margin: 0;
    font-size: 1.2rem;
}

.picker-options {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.picker-option {
    padding: 1.2rem;
    text-align: center;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.picker-option:hover {
    background: #1a1a1a;
    color: #f4d03f;
}

.picker-option.selected {
    background: rgba(212, 175, 55, 0.2);
    color: #f4d03f;
    font-weight: 700;
}

.picker-close {
    background: #111111;
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hide original native selects */
select.native-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
}