/* BNI K-성남 분당 판교 Custom Styles */

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* BNI Brand Colors */
:root {
    --bni-red: #E31E24;
    --bni-blue: #003366;
    --bni-gold: #FFB81C;
    --golden-penguin: #FFD700;
    --k-seongnam: #1E40AF;
}

/* Golden Penguin Animations */
.golden-penguin-container {
    animation: float 3s ease-in-out infinite;
}

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

.golden-penguin-icon {
    animation: goldShine 4s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.golden-penguin-icon img {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.7)) 
           drop-shadow(0 0 35px rgba(255, 184, 28, 0.5))
           drop-shadow(0 8px 30px rgba(0, 0, 0, 0.25));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center bottom;
}

.golden-penguin-icon:hover img {
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.9)) 
           drop-shadow(0 0 50px rgba(255, 184, 28, 0.7))
           drop-shadow(0 0 70px rgba(147, 51, 234, 0.3))
           drop-shadow(0 12px 40px rgba(0, 0, 0, 0.4));
    transform: scale(1.15) translateY(-5px);
}

/* Premium 3D Effects */
.golden-penguin-icon {
    position: relative;
}

.golden-penguin-icon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.golden-penguin-icon:hover::after {
    opacity: 1;
}

@keyframes goldShine {
    0%, 100% {
        transform: scale(1) rotateY(0deg);
        filter: brightness(1) saturate(1);
    }
    25% {
        transform: scale(1.03) rotateY(2deg);
        filter: brightness(1.1) saturate(1.1);
    }
    50% {
        transform: scale(1.06) rotateY(0deg);
        filter: brightness(1.2) saturate(1.2);
    }
    75% {
        transform: scale(1.03) rotateY(-2deg);
        filter: brightness(1.1) saturate(1.1);
    }
}

/* Premium 3D Penguin Animations */
@keyframes premiumFloat {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
    }
    33% {
        transform: translateY(-8px) rotateY(5deg);
    }
    66% {
        transform: translateY(-4px) rotateY(-3deg);
    }
}

.golden-penguin-container {
    animation: premiumFloat 4s ease-in-out infinite;
}

.speech-bubble {
    animation: bubbleFade 2s ease-in-out 1s infinite alternate;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@keyframes bubbleFade {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

/* Network Animation Background */
.network-animation {
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 184, 28, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(227, 30, 36, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(0, 51, 102, 0.1) 0%, transparent 50%);
    animation: networkPulse 8s ease-in-out infinite;
}

@keyframes networkPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

/* Network Lines Effect */
.network-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 40%, rgba(255, 215, 0, 0.1) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(255, 184, 28, 0.1) 50%, transparent 60%);
    animation: networkLines 12s linear infinite;
}

@keyframes networkLines {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* BNI Button Styles */
.btn-bni-red {
    background: linear-gradient(135deg, var(--bni-red) 0%, #c71e24 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.3);
}

.btn-bni-red:hover {
    background: linear-gradient(135deg, #c71e24 0%, var(--bni-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.4);
}

.btn-golden-penguin {
    background: linear-gradient(135deg, var(--golden-penguin) 0%, #ffd000 100%);
    color: #333;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-golden-penguin:hover {
    background: linear-gradient(135deg, #ffd000 0%, var(--golden-penguin) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* Section Backgrounds */
.section-bg-pattern {
    position: relative;
    overflow: hidden;
}

.section-bg-pattern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(227, 30, 36, 0.05) 0%, transparent 25%);
    animation: patternMove 20s linear infinite;
    z-index: -1;
}

@keyframes patternMove {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* K-Industries Grid Animation */
.k-industry-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.k-industry-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

/* Chapter Cards */
.chapter-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chapter-card::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;
}

.chapter-card:hover::before {
    left: 100%;
}

.chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Stats Counter Animation */
.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--bni-red);
    display: block;
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Executive Section Styles */
.executive-profile {
    position: relative;
}

.executive-profile::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50px;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--bni-gold) 0%, transparent 100%);
    transform: translateY(-50%);
}

/* Professional Profile Photo Styling */
.executive-profile img[alt*="Executive Director"] {
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
    transition: all 0.3s ease;
}

.executive-profile:hover img[alt*="Executive Director"] {
    filter: brightness(1.1) contrast(1.15) saturate(1.15);
    transform: scale(1.02);
}

/* Professional Ring Animation */
@keyframes professional-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(147, 51, 234, 0.3), 0 0 30px rgba(255, 184, 28, 0.2);
    }
    50% {
        box-shadow: 0 0 35px rgba(147, 51, 234, 0.6), 0 0 50px rgba(255, 184, 28, 0.4);
    }
}

.executive-profile .w-48 {
    animation: professional-glow 4s ease-in-out infinite;
}

/* Testimonial Styles */
.testimonial {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 4rem;
    color: var(--golden-penguin);
    font-family: serif;
}

/* Hero Background Optimization */
#hero img {
    object-position: center top;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Everest Parallax Effect */
.everest-parallax {
    will-change: transform;
    transform-style: preserve-3d;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .golden-penguin-icon img {
        width: 6rem !important;
        height: 6rem !important;
    }
    
    .speech-bubble {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .network-animation {
        display: none;
    }
    
    .section-bg-pattern::before {
        display: none;
    }
    
    #hero img {
        object-position: center center;
    }
    
    /* Story section penguin size adjustment */
    .bg-gradient-to-br img {
        max-width: 4rem;
        max-height: 4rem;
    }
    
    /* Contact section penguin size adjustment */
    .text-center img {
        max-width: 6rem;
        max-height: 6rem;
    }
    
    /* Executive Profile Mobile Optimization */
    .executive-profile .w-48 {
        width: 12rem !important;
        height: 12rem !important;
        margin: 0 auto;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    /* 모바일에서 프로필 이미지 컨테이너 최적화 */
    .executive-profile img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 50% !important;
    }
    
    .executive-profile .w-12 {
        width: 2rem !important;
        height: 2rem !important;
    }
    
    /* Mobile Video Optimizations */
    .video-story-container video {
        height: auto !important;
        min-height: 120px;
    }
    
    .episode-card {
        margin-bottom: 1rem;
    }
    
    .story-animated-bg {
        animation-duration: 12s; /* Slower on mobile for performance */
    }
    
    /* Mobile video controls */
    video::-webkit-media-controls-panel {
        background-color: rgba(0, 0, 0, 0.9);
    }
}

/* Contact Form Styles */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--golden-penguin);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--golden-penguin);
    animation: spin 1s ease-in-out infinite;
}

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

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Parallax Effect for Hero Section */
.hero-parallax {
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--bni-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c71e24;
}

/* Print Styles */
@media print {
    .fixed, .sticky {
        position: static !important;
    }
    
    .bg-gradient-to-r, .bg-gradient-to-br, .bg-gradient-to-b {
        background: #fff !important;
        color: #000 !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Better Accessibility */
a:focus, button:focus, input:focus {
    outline: 2px solid var(--golden-penguin);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-gray-50, .bg-gray-100 {
        background: #fff !important;
    }
    
    .text-gray-600, .text-gray-700 {
        color: #000 !important;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* Motion Emoticon Animations */
.motion-emoticon {
    animation: emoticon-idle 3s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15))
           drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
}

.motion-emoticon:hover {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2))
           drop-shadow(0 0 25px rgba(255, 215, 0, 0.6)) 
           drop-shadow(0 0 35px rgba(147, 51, 234, 0.4));
    transform: scale(1.05);
}

@keyframes emoticon-idle {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(1deg);
    }
    50% {
        transform: translateY(-8px) rotate(0deg);
    }
    75% {
        transform: translateY(-3px) rotate(-1deg);
    }
}

/* Blink Animation */
@keyframes blink {
    0%, 90%, 100% {
        transform: scaleY(1);
    }
    95% {
        transform: scaleY(0.1);
    }
}

/* Thumbs Up Animation */
@keyframes thumbsUp {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-10px) rotate(5deg) scale(1.1);
    }
}

/* Excited Animation */
@keyframes excited {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(3deg) scale(1.05);
    }
    50% {
        transform: rotate(-3deg) scale(1.1);
    }
    75% {
        transform: rotate(2deg) scale(1.05);
    }
}

/* Wave Animation */
@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(10deg);
    }
    50% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(8deg);
    }
}

/* Bounce Animation */
@keyframes bounce-emoticon {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-8px);
    }
}

/* Nod Animation */
@keyframes nod {
    0%, 100% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(15deg);
    }
}

/* Interactive States */
.motion-emoticon:active {
    animation: excited 0.6s ease-in-out;
}

.motion-emoticon.thumbs-up {
    animation: thumbsUp 1s ease-in-out !important;
}

.motion-emoticon.wave {
    animation: wave 1s ease-in-out !important;
}

.motion-emoticon.bounce {
    animation: bounce-emoticon 0.8s ease-in-out !important;
}

.motion-emoticon.nod {
    animation: nod 0.5s ease-in-out !important;
}

.motion-emoticon.excited {
    animation: excited 0.8s ease-in-out !important;
}

/* Staggered Animation for Multiple Penguins */
.motion-emoticon:nth-child(1) { animation-delay: 0s; }
.motion-emoticon:nth-child(2) { animation-delay: 0.5s; }
.motion-emoticon:nth-child(3) { animation-delay: 1s; }
.motion-emoticon:nth-child(4) { animation-delay: 1.5s; }

/* Enhanced Shadow for Transparent Background */
.motion-emoticon {
    position: relative;
}

.motion-emoticon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 12px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.motion-emoticon:hover::after {
    width: 60%;
    height: 15px;
    bottom: -10px;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.2) 0%, rgba(0, 0, 0, 0.15) 30%, transparent 70%);
}

/* Special Effects for Different Sections */
.golden-penguin-container .motion-emoticon {
    animation-duration: 4s;
    transform-origin: center bottom;
}

/* Header Mini Emoticon */
header .motion-emoticon {
    animation-duration: 5s;
    animation-timing-function: ease-in-out;
}

/* Video Story Styles */
.video-story-container {
    position: relative;
    overflow: hidden;
}

.video-story-container video {
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 12px;
}

.video-story-container:hover video {
    transform: scale(1.02);
    filter: brightness(1.1) contrast(1.05);
}

/* Video Overlay Effects */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.1) 50%, 
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-story-container:hover .video-overlay {
    opacity: 1;
}

/* Video Controls Styling */
video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8);
}

video::-webkit-media-controls-play-button {
    background-color: rgba(255, 215, 0, 0.9);
    border-radius: 50%;
}

/* Animated Story Background */
.story-animated-bg {
    background: linear-gradient(
        45deg,
        rgba(255, 215, 0, 0.05) 0%,
        rgba(227, 30, 36, 0.05) 25%,
        rgba(0, 51, 102, 0.05) 50%,
        rgba(255, 184, 28, 0.05) 75%,
        rgba(255, 215, 0, 0.05) 100%
    );
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Video Episode Cards */
.episode-card {
    transition: all 0.3s ease;
    transform-origin: center;
    cursor: pointer;
}

.episode-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.episode-card video {
    object-fit: cover;
    background-color: #f3f4f6;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d1d5db' fill-opacity='0.5'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* Video Loading States */
.video-story-container.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top: 3px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.video-story-container.playing {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4) !important;
}

/* Play Button Overlay for Episode Cards */
.episode-card::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.6);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.episode-card:hover::after {
    opacity: 1;
}

/* Sparkle Effect for Emoticons */
.motion-emoticon.sparkle {
    position: relative;
}

.motion-emoticon.sparkle::before {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 1.2em;
    animation: sparkle-twinkle 2s infinite;
    pointer-events: none;
}

@keyframes sparkle-twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

/* Heart Eyes Effect */
.motion-emoticon.heart-eyes {
    position: relative;
}

.motion-emoticon.heart-eyes::after {
    content: '💕';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1em;
    animation: float-hearts 3s infinite;
    pointer-events: none;
}

@keyframes float-hearts {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    20%, 80% {
        opacity: 1;
        transform: translateX(-50%) translateY(-20px);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-40px);
    }
}

/* Premium 3D Penguin Spotlight Effect */
.premium-spotlight {
    position: relative;
    overflow: visible;
}

.premium-spotlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255, 215, 0, 0.1),
        rgba(255, 184, 28, 0.15),
        rgba(147, 51, 234, 0.1),
        transparent
    );
    border-radius: 50%;
    animation: rotate 8s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.premium-spotlight:hover::before {
    opacity: 1;
}

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

/* 3D Penguin Reflection Effect */
.penguin-reflection {
    position: relative;
}

.penguin-reflection::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to bottom,
        rgba(255, 215, 0, 0.2) 0%,
        transparent 100%
    );
    transform: scaleY(-1) perspective(400px) rotateX(45deg);
    opacity: 0.3;
    pointer-events: none;
}

/* Enhanced Mobile Navigation */
@media (max-width: 640px) {
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 40;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Golden Penguin Amazing Story Section Styles */
.story-slider-container {
    position: relative;
    background: #000;
    border: 3px solid rgba(255, 215, 0, 0.3);
    overflow: hidden;
}

.story-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.story-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
}

.story-slide.prev {
    transform: translateX(-100%);
}

/* Story Video Styles */
.story-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
    transition: filter 0.3s ease;
}

.story-slide.active .story-video {
    filter: brightness(0.9) contrast(1.2);
}

/* Story Placeholder for Missing Videos */
.story-placeholder {
    background: linear-gradient(45deg, 
        rgba(255, 215, 0, 0.1) 0%,
        rgba(227, 30, 36, 0.1) 25%,
        rgba(0, 51, 102, 0.1) 50%,
        rgba(255, 184, 28, 0.1) 75%,
        rgba(255, 215, 0, 0.1) 100%
    );
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
}

/* Story Content Overlay */
.story-overlay {
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    backdrop-filter: blur(2px);
}

.story-content {
    z-index: 3;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.story-slide.active .story-content {
    animation: fadeInUp 1s ease-out 0.5s both;
}

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

/* Story Navigation Styles */
.story-navigation {
    z-index: 10;
    position: relative;
}

.story-nav-btn {
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.story-nav-btn:hover {
    background: rgba(255, 215, 0, 0.8) !important;
    color: #000 !important;
    border-color: rgba(255, 215, 0, 0.8);
    transform: scale(1.1);
}

.story-nav-btn:active {
    transform: scale(0.95);
}

/* Story Indicators */
.story-indicators {
    z-index: 10;
}

.story-indicator {
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-indicator div {
    transition: all 0.3s ease;
}

.story-indicator.active div {
    background: #FFD700 !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    transform: scale(1.5);
}

.story-indicator:hover div {
    background: rgba(255, 215, 0, 0.8) !important;
    transform: scale(1.3);
}

/* Story Number Badge - Enhanced for 1/5 format */
.story-number {
    position: absolute;
    bottom: 20px;
    right: 30px;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.9), rgba(255, 184, 28, 0.9));
    padding: 12px 20px;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 215, 0, 0.5);
    font-weight: 900;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 20px rgba(227, 30, 36, 0.4);
    transition: all 0.3s ease;
}

.story-number:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(227, 30, 36, 0.6);
}

/* 모바일 최적화 - Story Number */
@media (max-width: 768px) {
    .story-number {
        bottom: 15px;
        right: 20px;
        padding: 8px 16px;
        font-size: 1.25rem;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .story-number {
        bottom: 10px;
        right: 15px;
        padding: 6px 12px;
        font-size: 1rem;
        border-radius: 15px;
    }
}

/* Auto-play Control Button */
.auto-play-btn {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

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

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

.auto-play-btn.playing {
    background: rgba(227, 30, 36, 0.9) !important;
    color: white !important;
    border-color: rgba(227, 30, 36, 0.9);
}

/* Story Loading Animation */
@keyframes storyLoading {
    0% {
        transform: rotate(0deg);
        border-color: rgba(255, 215, 0, 0.3) rgba(255, 215, 0, 0.3) rgba(255, 215, 0, 1) rgba(255, 215, 0, 0.3);
    }
    100% {
        transform: rotate(360deg);
        border-color: rgba(255, 215, 0, 0.3) rgba(255, 215, 0, 0.3) rgba(255, 215, 0, 1) rgba(255, 215, 0, 0.3);
    }
}

/* Story Section Background Effects */
#golden-story {
    position: relative;
    overflow: hidden;
}

#golden-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(227, 30, 36, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(0, 51, 102, 0.05) 0%, transparent 40%);
    animation: backgroundPulse 12s ease-in-out infinite;
    z-index: 1;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Story Slide Entrance Animations */
.story-slide[data-story="1"] .story-content {
    animation-delay: 0.2s;
}

.story-slide[data-story="2"] .story-content {
    animation-delay: 0.4s;
}

.story-slide[data-story="3"] .story-content {
    animation-delay: 0.6s;
}

.story-slide[data-story="4"] .story-content {
    animation-delay: 0.8s;
}

.story-slide[data-story="5"] .story-content {
    animation-delay: 1s;
}

/* Progress Bar for Auto-play */
.story-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 215, 0, 0.8);
    width: 0%;
    transition: width 0.1s ease;
    z-index: 4;
}

.story-slide.active .story-progress {
    animation: progressBar 5s linear;
}

@keyframes progressBar {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* Responsive Story Section */
@media (max-width: 768px) {
    .story-slider-container {
        height: 400px !important;
    }
    
    .story-content {
        padding: 1rem !important;
    }
    
    .story-content h3 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .story-content p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .story-number {
        bottom: 10px;
        right: 15px;
        font-size: 1rem !important;
        padding: 6px 12px;
    }
    
    .story-nav-btn {
        padding: 0.5rem !important;
    }
    
    .story-nav-btn svg {
        width: 1rem !important;
        height: 1rem !important;
    }
    
    .story-indicators .story-indicator div {
        width: 0.5rem !important;
        height: 0.5rem !important;
    }
    
    .auto-play-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
}

/* Enhanced Interactive Effects for Golden Penguin Amazing Story */

/* Slide Enter/Exit Animations */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Story Text Reveal Animations */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blinkCursor {
    0%, 50% {
        border-color: rgba(255, 215, 0, 1);
    }
    51%, 100% {
        border-color: transparent;
    }
}

.story-content h3 {
    overflow: hidden;
    border-right: 3px solid rgba(255, 215, 0, 0.8);
    white-space: nowrap;
    animation: typewriter 2s steps(20, end), blinkCursor 1s step-end infinite;
    animation-delay: 0.5s;
}

.story-slide.active .story-content h3 {
    animation: typewriter 2s steps(20, end) 0.5s both, blinkCursor 1s step-end infinite 0.5s;
}

/* Particle Effects */
.story-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 215, 0, 0.7);
    border-radius: 50%;
    animation: floatParticle 8s infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Sound Wave Effect */
.sound-waves {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: end;
    gap: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-slide.active .sound-waves {
    opacity: 1;
}

.sound-bar {
    width: 4px;
    background: linear-gradient(to top, #FFD700, #FFA500);
    border-radius: 2px;
    animation: soundWave 1.5s infinite;
}

.sound-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.sound-bar:nth-child(2) { height: 30px; animation-delay: 0.1s; }
.sound-bar:nth-child(3) { height: 25px; animation-delay: 0.2s; }
.sound-bar:nth-child(4) { height: 35px; animation-delay: 0.3s; }
.sound-bar:nth-child(5) { height: 20px; animation-delay: 0.4s; }

@keyframes soundWave {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.3);
    }
}

/* Interactive Hover Effects for Navigation */
.story-nav-btn {
    position: relative;
    overflow: hidden;
}

.story-nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    border-radius: 50%;
}

.story-nav-btn:hover::before {
    width: 150%;
    height: 150%;
}

.story-nav-btn:active {
    animation: buttonClick 0.2s ease;
}

@keyframes buttonClick {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* Progress Ring Animation */
.story-progress-ring {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(#FFD700 0deg, transparent 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    transition: background 0.1s ease;
}

.story-slide.active .story-progress-ring {
    animation: progressRing 6s linear;
}

@keyframes progressRing {
    from {
        background: conic-gradient(#FFD700 0deg, rgba(255, 255, 255, 0.2) 0deg);
    }
    to {
        background: conic-gradient(#FFD700 360deg, rgba(255, 255, 255, 0.2) 360deg);
    }
}

/* Story Number Badge Enhancement */
.story-number {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.4);
        transform: scale(1.05);
    }
}

/* Enhanced Golden Penguin Animations */
.story-penguin-container {
    position: absolute;
    bottom: 20px;
    right: 100px;
    animation: penguinDance 4s infinite;
}

@keyframes penguinDance {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(2deg);
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-2deg);
    }
}

/* Story Slide Transition Sound Visual */
.transition-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.8) 50%, transparent 70%);
    transform: translateX(-100%);
    pointer-events: none;
}

.story-slide.transitioning .transition-flash {
    animation: transitionFlash 0.5s ease-out;
}

@keyframes transitionFlash {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Auto-play Button Enhanced Animation */
.auto-play-btn.playing {
    animation: playingPulse 2s infinite;
}

@keyframes playingPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(227, 30, 36, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(227, 30, 36, 0.8), 0 0 30px rgba(227, 30, 36, 0.4);
    }
}

/* Micro-interactions for Indicators */
.story-indicator:hover {
    transform: scale(1.2);
}

.story-indicator.active {
    animation: indicatorActive 1s infinite alternate;
}

@keyframes indicatorActive {
    0% {
        transform: scale(1.5);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    }
    100% {
        transform: scale(1.7);
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1));
    }
}

/* Loading State Animation */
.story-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 215, 0, 0.3);
    border-top: 5px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.loading-text {
    font-size: 14px;
    animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Success/Completion Effect */
.story-complete-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    animation: celebrationPop 1s ease-out;
    pointer-events: none;
}

@keyframes celebrationPop {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(360deg);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .story-slider-container {
        height: 350px !important;
    }
    
    .story-content h3 {
        font-size: 1.5rem !important;
    }
    
    .story-content p {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
    }
    
    .story-content .text-6xl {
        font-size: 3rem !important;
        margin-bottom: 1rem !important;
    }
}



/* ============================================ */
/* 신성장동력팀 영상 로딩 및 오류 처리 */
/* ============================================ */

/* 영상 컨테이너 개선 */
.growth-team-video {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.growth-team-video:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* 영상 로딩 스피너 */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(227, 30, 36, 0.2);
    border-top: 4px solid #E31E24;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 영상 오류 상태 스타일링 */
#growth-team-video-error {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
}

#growth-team-video-error button {
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.2);
    transition: all 0.3s ease;
}

#growth-team-video-error button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(227, 30, 36, 0.3);
}

/* 영상 로딩 상태 스타일링 */
#growth-team-video-loading {
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 영상 플레이스홀더 개선 */
video {
    background-color: #f8f9fa;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(227, 30, 36, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 184, 28, 0.1) 0%, transparent 50%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

/* 모바일에서 영상 최적화 */
@media (max-width: 768px) {
    .growth-team-video {
        height: 300px !important;
    }
    
    #growth-team-video-loading,
    #growth-team-video-error {
        border-radius: 8px;
    }
    
    .loading-spinner {
        width: 36px;
        height: 36px;
        border-width: 3px;
    }
    
    #growth-team-video-error .text-6xl {
        font-size: 3rem;
    }
}

/* ============================================ */
/* 모바일 텍스트 가독성 최적화 */
/* ============================================ */

/* 모바일 최적화 텍스트 스타일 */
.mobile-optimized-text {
    word-break: keep-all;
    line-height: 1.6;
}

/* 모바일에서 키워드 단위 줄바꿈 최적화 */
@media (max-width: 768px) {
    .mobile-optimized-text {
        line-height: 1.5;
        word-spacing: 0.1em;
    }
    
    /* Hero 섹션 텍스트 최적화 */
    h1 .block {
        line-height: 1.3;
        margin-bottom: 0.2em;
    }
    
    h1 .block:last-child {
        margin-bottom: 0;
    }
    
    /* 서브헤딩 텍스트 간격 조정 */
    p .block {
        line-height: 1.4;
        margin-bottom: 0.1em;
    }
    
    p .block:last-child {
        margin-bottom: 0;
    }
    
    /* Hero 제목 모바일 크기 조정 */
    h1.text-4xl {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    /* 서브헤딩 크기 조정 */
    .mobile-optimized-text.text-xl {
        font-size: 1.125rem !important;
        line-height: 1.5 !important;
    }
    
    /* 섹션 제목 크기 조정 */
    h2.text-5xl {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }
    
    h2.text-4xl {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
}

/* 초소형 모바일 (320px 이하) 추가 최적화 */
@media (max-width: 320px) {
    h1.text-4xl {
        font-size: 2rem !important;
    }
    
    .mobile-optimized-text.text-xl {
        font-size: 1rem !important;
    }
    
    h2.text-5xl {
        font-size: 2rem !important;
    }
    
    h2.text-4xl {
        font-size: 1.875rem !important;
    }
}

/* 키워드 강조 텍스트 모바일 최적화 */
@media (max-width: 768px) {
    .text-golden-penguin,
    .text-bni-gold,
    .text-bni-blue,
    .text-bni-red {
        display: inline-block;
        padding: 0.1em 0;
    }
    
    /* 모바일에서 두 줄 텍스트 버튼 최적화 */
    .inline-flex .block {
        text-align: center;
        width: 100%;
    }
    
    /* 비전 선언 모바일 중앙 정렬 */
    h3 .block {
        text-align: center;
    }
}

/* 텍스트 그룹 간격 최적화 */
.mobile-text-group {
    margin-bottom: 0.5rem;
}

.mobile-text-group:last-child {
    margin-bottom: 0;
}

/* ============================================ */
/* 메인 비디오 플레이어 스타일 (모바일/iOS 최적화) */
/* ============================================ */

.video-player {
    background: #000;
    border-radius: 0;
    transition: all 0.3s ease;
    width: 100%;
    height: auto;
    display: block;
}

.video-player:hover {
    box-shadow: 0 8px 32px rgba(227, 30, 36, 0.3);
}

.video-player:focus {
    outline: 2px solid #FFB81C;
    outline-offset: 2px;
}

/* 비디오 컨테이너 */
#video-container {
    position: relative;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    background: #000;
}

/* 로딩 및 에러 상태 오버레이 */
#video-loading,
#video-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 비디오 플레이어 반응형 */
@media (max-width: 768px) {
    .video-player {
        max-height: 300px;
        height: auto;
    }
    
    #video-container {
        border-radius: 0 0 8px 8px;
    }
    
    /* 모바일에서 비디오 컨트롤 크기 조정 */
    .video-player::-webkit-media-controls-panel {
        height: 48px;
    }
}

@media (max-width: 480px) {
    .video-player {
        max-height: 250px;
    }
}

/* iOS Safari 특별 스타일 */
@supports (-webkit-appearance: none) {
    .video-player::-webkit-media-controls-panel {
        background-color: rgba(0, 0, 0, 0.8);
    }
    
    .video-player::-webkit-media-controls-play-button {
        background-color: rgba(227, 30, 36, 0.9);
        border-radius: 50%;
    }
}

/* 터치 기기 최적화 */
@media (pointer: coarse) {
    .video-player::-webkit-media-controls-play-button,
    .video-player::-webkit-media-controls-start-playback-button {
        transform: scale(1.2);
        opacity: 0.9;
    }
    
    .video-player::-webkit-media-controls-fullscreen-button {
        transform: scale(1.1);
    }
}

/* 비디오 로딩 애니메이션 */
@keyframes videoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#video-loading .animate-spin {
    animation: videoSpin 1s linear infinite;
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .video-player {
        border: 2px solid #fff;
    }
    
    #video-loading,
    #video-error {
        border: 1px solid #fff;
    }
}

/* ============================================ */
/* 배경 영상 최적화 스타일 */
/* ============================================ */

#story {
    min-height: 100vh;
}

#story video {
    filter: brightness(0.8) contrast(1.1);
}

/* 모바일에서 배경 영상 최적화 */
@media (max-width: 768px) {
    #story {
        min-height: 80vh;
    }
    
    #story video {
        object-position: center center;
    }
    
    #story h2 {
        font-size: 2.5rem !important;
    }
    
    #story .text-xl {
        font-size: 1.125rem !important;
    }
}