/* ===================================
   Reset & Common Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans KR", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    background-color: #1a1a2e;
}

/* PC에서 최소 너비 고정 */
@media screen and (min-width: 768px) {
    body {
        min-width: 1280px;
        overflow-x: auto;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ===================================
   Layout
   =================================== */
#wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

#container {
    flex: 1;
}

/* ===================================
   Background Animation Container
   =================================== */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* World Map Background */
.world-map-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background-image: url('/view/m/img/world_map.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.04;
}

/* Grid Background */
.map-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(80px); }
}

/* Equalizer Bars */
.equalizer-container {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 100px;
    opacity: 0.15;
}

.eq-bar {
    width: 4px;
    background: linear-gradient(to top, #00ff88, #00ccff);
    border-radius: 2px;
    animation: eq-pulse 1.2s ease-in-out infinite;
}

.eq-bar:nth-child(1) { animation-delay: 0s; height: 20%; }
.eq-bar:nth-child(2) { animation-delay: 0.1s; height: 40%; }
.eq-bar:nth-child(3) { animation-delay: 0.2s; height: 60%; }
.eq-bar:nth-child(4) { animation-delay: 0.3s; height: 35%; }
.eq-bar:nth-child(5) { animation-delay: 0.4s; height: 50%; }
.eq-bar:nth-child(6) { animation-delay: 0.5s; height: 70%; }
.eq-bar:nth-child(7) { animation-delay: 0.6s; height: 45%; }
.eq-bar:nth-child(8) { animation-delay: 0.7s; height: 30%; }
.eq-bar:nth-child(9) { animation-delay: 0.8s; height: 55%; }
.eq-bar:nth-child(10) { animation-delay: 0.9s; height: 25%; }

@keyframes eq-pulse {
    0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
    50% { transform: scaleY(1); opacity: 0.8; }
}

/* Circle Elements */
.circle-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.circle-element {
    position: absolute;
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 50%;
    animation: pulse-circle 4s ease-in-out infinite;
}

.circle-element:nth-child(1) {
    top: 10%;
    right: 10%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
}

.circle-element:nth-child(2) {
    bottom: 20%;
    left: 5%;
    width: 100px;
    height: 100px;
    animation-delay: -2s;
}

@keyframes pulse-circle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.25;
    }
}

/* Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 255, 136, 0.5);
    border-radius: 50%;
    animation: float-particle 20s infinite ease-in-out;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translate(50px, -800px) scale(0.5);
        opacity: 0;
    }
}

/* ===================================
   Header - Mobile (Default)
   =================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s, box-shadow 0.3s;
}

#header.scrolled {
    background-color: rgba(10, 10, 20, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
    max-width: 1920px;
    margin: 0 auto;
}

/* Logo */
.logo {
    width: 48px;
    height: 36px;
    flex-shrink: 0;
    margin-top: -2px;
}

.logo a {
    display: block;
    width: 100%;
    height: 100%;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* PC Navigation - Hidden on Mobile */
.pc-nav {
    display: none;
}

/* Menu Button - Mobile Only (Hamburger) */
.menu-btn {
    width: 28px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 0;
}

.menu-btn .menu-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ===================================
   Mobile Menu
   =================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.mobile-menu.active {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 20, 0.98);
    max-height: 100vh;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateY(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
    width: 48px;
    height: 36px;
}

.mobile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mobile-sns-buttons {
    display: flex;
    gap: 8px;
}

.mobile-sns-buttons .sns-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mobile-sns-buttons .sns-btn.youtube {
    background-color: #ff0209;
}

.mobile-sns-buttons .sns-btn.telegram {
    background-color: #00b0f2;
}

.mobile-sns-buttons .sns-btn.saino {
    background: linear-gradient(135deg, #8B2D9B 0%, #6B1D7B 100%);
}

.mobile-sns-buttons .sns-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Menu Close Button */
.menu-close-btn {
    width: 32px;
    height: 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-close-btn span {
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
}

.menu-close-btn span:first-child {
    transform: rotate(45deg);
}

.menu-close-btn span:last-child {
    transform: rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.mobile-nav a {
    padding: 20px 24px;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s, color 0.3s;
}

.mobile-nav a:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav a:hover,
.mobile-nav a:active {
    background-color: rgba(0, 255, 136, 0.1);
    color: #00ff88;
}

/* ===================================
   Main Container with Header Offset
   =================================== */
#container {
    padding-top: 56px;
}

/* ===================================
   Section Common Styles
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.section-subtitle {
    font-size: 14px;
    color: #00ff88;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    line-height: 1.3;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Footer
   =================================== */
#footer {
    padding: 40px 20px;
    background-color: rgba(10, 10, 20, 0.95);
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    width: 80px;
}

.footer-logo img {
    width: 100%;
    height: auto;
}

.footer-info {
    text-align: center;
}

.footer-info .company-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.footer-info .company-email {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-sns {
    display: flex;
    gap: 12px;
}

.footer-sns .sns-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, opacity 0.3s;
}

.footer-sns .sns-btn:hover {
    transform: translateY(-3px);
}

.footer-sns .sns-btn.youtube {
    background-color: #ff0209;
}

.footer-sns .sns-btn.telegram {
    background-color: #00b0f2;
}

.footer-sns .sns-btn.saino {
    background: linear-gradient(135deg, #8B2D9B 0%, #6B1D7B 100%);
}

.footer-sns .sns-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.footer-bottom {
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    line-height: 1.6;
}

/* ===================================
   Scroll to Top Button
   =================================== */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(0, 255, 136, 0.15);
    border: 2px solid rgba(0, 255, 136, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    overflow: hidden;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
    transform: translateY(-3px);
}

.scroll-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===================================
   PC Styles (min-width: 768px)
   =================================== */
@media screen and (min-width: 768px) {
    /* Header */
    .header-container {
        height: 72px;
        padding: 0 40px;
    }

    .logo {
        width: 90px;
        height: 55px;
        margin-top: -4px;
    }

    /* PC Navigation */
    .pc-nav {
        display: flex;
        gap: 40px;
        align-items: center;
    }

    .pc-nav a {
        font-size: 14px;
        font-weight: 500;
        color: #fff;
        transition: color 0.3s;
        white-space: nowrap;
        position: relative;
    }

    .pc-nav a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #00ff88, #00ccff);
        transition: width 0.3s;
    }

    .pc-nav a:hover {
        color: #00ff88;
    }

    .pc-nav a:hover::after {
        width: 100%;
    }

    /* Hide mobile menu button on PC */
    .menu-btn {
        display: none;
    }

    /* Main Container */
    #container {
        padding-top: 72px;
    }

    /* Section Styles */
    .section-header {
        margin-bottom: 60px;
    }

    .section-subtitle {
        font-size: 16px;
        letter-spacing: 3px;
    }

    .section-title {
        font-size: 42px;
    }

    /* Footer */
    #footer {
        padding: 50px 60px;
    }

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-logo {
        width: 100px;
    }

    .footer-info {
        text-align: left;
        flex: 1;
        margin-left: 40px;
    }

    .footer-info .company-name {
        font-size: 15px;
    }

    .footer-info .company-email {
        font-size: 14px;
    }

    .footer-sns .sns-btn {
        width: 44px;
        height: 44px;
    }

    .footer-sns .sns-btn img {
        width: 24px;
        height: 24px;
    }

    .footer-copyright {
        font-size: 13px;
    }

    /* Scroll Top */
    .scroll-top {
        bottom: 40px;
        right: 40px;
        width: 56px;
        height: 56px;
    }

    /* Equalizer */
    .equalizer-container {
        height: 150px;
        gap: 6px;
    }

    .eq-bar {
        width: 6px;
    }

    /* Circles */
    .circle-element:nth-child(1) {
        width: 250px;
        height: 250px;
    }

    .circle-element:nth-child(2) {
        width: 180px;
        height: 180px;
    }
}

/* ===================================
   Large PC Styles (min-width: 1280px)
   =================================== */
@media screen and (min-width: 1280px) {
    .header-container {
        padding: 0 60px;
    }

    .pc-nav {
        gap: 50px;
    }

    .pc-nav a {
        font-size: 15px;
    }

    #footer {
        padding: 60px 80px;
    }

    .scroll-top {
        right: 60px;
    }

    .section-title {
        font-size: 48px;
    }
}

/* ===================================
   Content Container (max-width 1620px)
   =================================== */
.content-container {
    max-width: 1620px;
    margin: 0 auto;
    padding: 0 16px;
}

@media screen and (min-width: 768px) {
    .content-container {
        padding: 0 40px;
    }
}

@media screen and (min-width: 1280px) {
    .content-container {
        padding: 0 60px;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.visible { display: block !important; }

.mobile-only {
    display: block;
}

.pc-only {
    display: none;
}

@media screen and (min-width: 768px) {
    .mobile-only {
        display: none;
    }

    .pc-only {
        display: block;
    }
}
