/* ==========================================
   HERO SECTION - Studio Style Design
   ========================================== */

/* Radial Spotlight Effect */
.bg-radial-spotlight {
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

/* Text Shadow Effects */
.text-shadow-glow {
    animation: glow-pulse 3s ease-in-out infinite;
}

.text-shadow-elegant {
    animation: elegant-fade 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(218, 165, 32, 0.4),
            0 0 40px rgba(218, 165, 32, 0.2),
            2px 2px 8px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(218, 165, 32, 0.6),
            0 0 60px rgba(218, 165, 32, 0.4),
            2px 2px 8px rgba(0, 0, 0, 0.8);
    }
}

@keyframes elegant-fade {
    0%, 100% {
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 0.4),
            2px 2px 8px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 0.6),
            2px 2px 8px rgba(0, 0, 0, 0.8);
    }
}

/* HADA Text Stroke Hover Effect */
.hero-hada-stroke:hover {
    color: rgba(255, 255, 255, 0.125) !important;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 1) !important;
    text-stroke: 1px rgba(255, 255, 255, 1) !important;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05);
    cursor: pointer;
}

.hero-hada-stroke:active {
    transform: scale(1.02);
}

/* Fade-in Animations */
.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.animate-fade-in-delay-3 {
    animation: fadeInUp 1s ease-out 0.9s both;
}

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

/* ==========================================
   MODERN BUTTON STYLES
   ========================================== */

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.btn-modern::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;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern i {
    font-size: 1.2rem;
}

/* Gold Button */
.btn-modern-gold {
    background: linear-gradient(135deg, #DAA520 0%, #CD853F 100%);
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
}

.btn-modern-gold:hover {
    background: linear-gradient(135deg, #CD853F 0%, #DAA520 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.4);
}

.btn-modern-gold:active {
    transform: translateY(-1px) scale(1.02);
}

/* White Button */
.btn-modern-white {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F0F0 100%);
    color: #1a1a1a;
}

.btn-modern-white:hover {
    background: linear-gradient(135deg, #F0F0F0 0%, #E0E0E0 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.btn-modern-white:active {
    transform: translateY(-1px) scale(1.02);
}

/* Outline Button */
.btn-modern-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-modern-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-modern-outline:active {
    transform: translateY(-1px) scale(1.02);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 640px) {
    .btn-modern {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .btn-modern i {
        font-size: 1rem;
    }
}

/* ==========================================
   BACKGROUND IMAGE OPTIMIZATION
   ========================================== */

#home {
    min-height: 70vh; /* 100vh에서 70vh로 변경 */
    display: flex;
    align-items: center; /* 세로 중앙 정렬 */
    justify-content: center; /* 가로 중앙 정렬 */
    overflow: hidden; /* 줌 아웃 시 이미지가 밖으로 나가지 않도록 */
}

#home img {
    filter: brightness(1.1) contrast(1.05); /* 밝기 1.0 → 1.1 (더욱 밝게) */
    animation: slowZoomOut 30s ease-in-out infinite; /* 줌 아웃 애니메이션 */
    transition: filter 0.5s ease; /* 부드러운 밝기 전환 효과 */
}

/* 호버 시 밝기 증가 */
#home:hover img {
    filter: brightness(1.35) contrast(1.05); /* 호버 시 밝기 1.25 → 1.35 (더 밝게) */
}

/* 부드러운 줌 아웃 애니메이션 */
@keyframes slowZoomOut {
    0% {
        transform: scale(1.1); /* 살짝 확대된 상태에서 시작 */
    }
    50% {
        transform: scale(1.0); /* 원래 크기로 축소 */
    }
    100% {
        transform: scale(1.1); /* 다시 확대 */
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

.btn-modern:focus {
    outline: 3px solid rgba(218, 165, 32, 0.5);
    outline-offset: 3px;
}

.btn-modern:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================
   LOADING STATES
   ========================================== */

.btn-modern.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-modern.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
