/* Kinetic Typography Effects */

/* Hero title reveal animation */
.hero-glass h1 {
    overflow: hidden;
}

.hero-glass h1 .highlight {
    display: inline-block;
    animation: highlightReveal 1s ease 0.6s forwards, highlightGlow 3s ease-in-out 2s infinite;
    opacity: 0;
    transform: translateY(100%);
}

@keyframes highlightReveal {
    from { opacity: 0; transform: translateY(40px) rotateX(20deg); }
    to { opacity: 1; transform: translateY(0) rotateX(0); }
}

@keyframes highlightGlow {
    0%, 100% { filter: drop-shadow(0 2px 10px rgba(255, 109, 0, 0.3)); }
    50% { filter: drop-shadow(0 4px 20px rgba(0, 180, 216, 0.5)); }
}

/* Section titles - slide in from left on scroll */
.section-title {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateX(0);
}

.section-label {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-label.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.section-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Counter animation enhancement - number glow */
.glass-stat-number {
    transition: all 0.3s ease;
}

.glass-stat-card:hover .glass-stat-number {
    filter: drop-shadow(0 0 15px rgba(0, 180, 216, 0.6));
    transform: scale(1.1);
}

/* Smooth section transitions */
/* 위치를 움직이지 않는다. translateY 를 쓰면 메뉴로 이동할 때 그만큼(40px) 지나쳐 멈춘다 */
section {
    opacity: 0;
    transition: opacity 0.8s ease;
}

section.in-view {
    opacity: 1;
}

/* Hero section should always be visible */
section.hero {
    opacity: 1;
    transform: none;
}
