/* 전역 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

/* 메인 컨테이너 */
.intro-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    /* 배경 이미지 설정 - 원하는 이미지 경로로 변경하세요 */
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
    z-index: 2;
}

/* 배경 이미지 위 어두운 오버레이 (선택사항) */
.intro-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
    transition: background 1.5s ease-in-out;
}

/* 클릭 시 배경 이미지 (background_h.jpg) */
.intro-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background_h.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
    pointer-events: none;
}

/* 버튼 클릭 시 배경 이미지 전환 */
.intro-container.transitioning::after {
    opacity: 1;
}

	/* 새로고침 로고 스타일 */
.refresh {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}

.refresh:hover {
  transform: scale(1.1);
  opacity: 1;
}

.refresh img {
  width: 150px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}


/* 배경 애니메이션 레이어 */
/*.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(74, 144, 226, 0.3), transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(138, 43, 226, 0.2), transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
    z-index: 1;
}*/

@keyframes bgFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-20px, -20px) scale(1.1);
        opacity: 0.8;
    }
}

/* 파티클 캔버스 */
#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* 메인 컨텐츠 */
.content {
    position: relative;
    z-index: 3;
    text-align: center;
    animation: fadeInUp 1.5s ease-out;
}

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

/* 로고 컨테이너 */
.logo-container {
    margin-bottom: 60px;
    animation: logoFloat 3s ease-in-out infinite;
}

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

.logo {
    position: relative;
    margin-bottom: 300px;
}

.logo-text {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 8px;
    /*text-transform: uppercase;*/
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
                 0 0 40px rgba(255, 255, 255, 0.3),
                 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffffff, #e0e7ff, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}
.logo-text img{
	width: 350px;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.logo-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* 버튼 컨테이너 */
.button-container {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    border-radius: 50px;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.intro-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.intro-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.intro-button:hover::before {
    left: 100%;
}

.intro-button:hover {
    transform: scale(1.1) translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
                0 0 50px rgba(255, 255, 255, 0.3);
}

.intro-button:hover + .button-glow {
    opacity: 1;
}

.button-text {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.button-icon {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-button:hover .button-icon {
    transform: translateX(10px);
}

.intro-button:active {
    transform: scale(1.05) translateY(-3px);
}

/* 하단 텍스트 */
.footer-text {
    animation: fadeIn 2s ease-out 1s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.footer-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 3px;
    /*text-transform: uppercase;*/
    font-weight: 300;
}

/* 반응형 디자인 */
@media (max-width: 767px) {
    /* 모바일용 배경 이미지 */
    .intro-container {
        background-image: url('m_background.jpg');
    }
    
    /* 모바일용 클릭 시 배경 이미지 */
    .intro-container::after {
        background-image: url('m_background_h.jpg');
    }
    
    .logo-text {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .logo-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .intro-button {
        padding: 15px 40px;
        font-size: 1rem;
        gap: 10px;
    }

    .button-icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .logo-subtitle {
        font-size: 0.8rem;
    }

    .intro-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}