/* ============================================
   K-IDOL Kazakhstan - 3D, Scrollytelling, Bento, Vibrant
   ============================================ */

/* ----- Vibrant palette (light) ----- */
.kazakhstan-page {
    --vibrant-1: #a855f7;
    --vibrant-2: #ec4899;
    --vibrant-3: #06b6d4;
    --vibrant-4: #f59e0b;
    --vibrant-bg: #0f0c29;
    --vibrant-glow: rgba(168, 85, 247, 0.5);
    --vibrant-text: #1a1a2e;
}

/* ----- Dark mode: more vibrant ----- */
body.dark-mode.kazakhstan-page {
    --vibrant-1: #c084fc;
    --vibrant-2: #f472b6;
    --vibrant-3: #22d3ee;
    --vibrant-4: #fbbf24;
    --vibrant-bg: #0a0818;
    --vibrant-glow: rgba(192, 132, 252, 0.6);
    --vibrant-text: #e2e8f0;
}

.kazakhstan-page {
    font-family: 'Outfit', 'Malgun Gothic', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ----- Hero ----- */
.hero-kaz {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -20%;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 40%, #24243e 70%, #0f0c29 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/bg/globalKidol_bg1.webp') center/cover no-repeat;
    opacity: 0.25;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, var(--vibrant-glow) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(236, 72, 153, 0.25) 0%, transparent 45%),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(6, 182, 212, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

/* 3D floating orbs */
.hero-orb {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    filter: blur(45px);
    opacity: 0.85;
    pointer-events: none;
    will-change: transform;
}
.hero-orb-1 {
    width: 320px;
    height: 320px;
    background: var(--vibrant-1);
    top: 10%;
    left: 5%;
    animation: orbFloat 15s ease-in-out infinite;
}
.hero-orb-2 {
    width: 240px;
    height: 240px;
    background: var(--vibrant-2);
    top: 60%;
    right: 10%;
    animation: orbFloat 12s ease-in-out infinite 2s;
}
.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: var(--vibrant-3);
    bottom: 20%;
    left: 30%;
    animation: orbFloat 18s ease-in-out infinite 1s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

/* Kinetic typography: hero label (staggered chars) */
.kinetic-label {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.05em;
    justify-content: center;
}
.kinetic-label span {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    animation: kineticChar 0.5s ease forwards;
}
.kinetic-label span:nth-child(1) { animation-delay: 0.05s; }
.kinetic-label span:nth-child(2) { animation-delay: 0.1s; }
.kinetic-label span:nth-child(3) { animation-delay: 0.15s; }
.kinetic-label span:nth-child(4) { animation-delay: 0.2s; }
.kinetic-label span:nth-child(5) { animation-delay: 0.3s; }
.kinetic-label span:nth-child(6) { animation-delay: 0.35s; }
.kinetic-label span:nth-child(7) { animation-delay: 0.4s; }
.kinetic-label span:nth-child(8) { animation-delay: 0.45s; }
.kinetic-label span:nth-child(9) { animation-delay: 0.5s; }
.kinetic-label span:nth-child(n+10) { animation-delay: 0.55s; }
@keyframes kineticChar {
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    margin: 0 0 8px;
    line-height: 1.15;
    perspective: 1000px;
}

.kinetic-title .title-line {
    display: block;
    overflow: hidden;
}
.kinetic-title .word {
    display: inline-block;
    font-size: clamp(2.8rem, 10vw, 5rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 30px var(--vibrant-glow), 0 4px 0 rgba(0,0,0,0.3);
    transform: translateY(1.2em);
    animation: kineticWord 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    background: linear-gradient(135deg, #fff 0%, #e0b0ff 50%, #c084fc 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@supports not (background-clip: text) {
    .kinetic-title .word { color: #e0b0ff; -webkit-text-fill-color: #e0b0ff; }
}
.kinetic-title .title-line.sub .word {
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 700;
    animation-delay: 0.2s;
    animation-fill-mode: forwards;
    background: linear-gradient(90deg, #f472b6, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
}
@keyframes kineticWord {
    to { transform: translateY(0); }
}

/* Section heading kinetic (scroll reveal) */
.kinetic-heading.revealed {
    animation: kineticHeading 0.8s ease forwards;
}
@keyframes kineticHeading {
    0% { opacity: 0; transform: translateY(24px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.kinetic-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    letter-spacing: 0.2em;
    opacity: 0;
    animation: fadeInUp 0.8s 0.4s ease forwards, subtitleGlow 3s ease-in-out 1s infinite alternate;
    animation-fill-mode: forwards;
}
@keyframes subtitleGlow {
    from { text-shadow: 0 0 20px rgba(255,255,255,0.3); }
    to { text-shadow: 0 0 30px var(--vibrant-glow); }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    letter-spacing: 0.15em;
    animation: fadeInUp 0.8s 0.3s ease forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s 0.45s ease forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

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

.hero-cta {
    display: inline-block;
    position: relative;
    overflow: hidden;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--vibrant-1) 0%, var(--vibrant-2) 100%);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeInUp 0.8s 0.6s ease forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-cta:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 48px var(--vibrant-glow);
}

.hero-cta:active {
    transform: translateY(-2px) scale(1.01);
}

/* Ripple micro-interaction */
.cta-ripple {
    position: relative;
}
.ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleExpand 0.6s ease-out forwards;
    pointer-events: none;
}
@keyframes rippleExpand {
    to { transform: translate(-50%, -50%) scale(25); opacity: 0; }
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
}

.scroll-hint-micro span {
    transition: transform 0.2s ease, color 0.2s ease;
}
.scroll-hint-micro:hover span {
    transform: translateY(-2px);
    color: var(--vibrant-3);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--vibrant-1), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ----- Sections common ----- */
.section {
    position: relative;
    padding: 80px 0;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-color, #1a1a2e);
}

.section-lead {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 24px;
    color: var(--text-color, #444);
    opacity: 0.9;
    line-height: 1.7;
}

/* ----- 행사 진행 순서 한 줄 (인터랙티브) ----- */
.event-flow-wrap {
    margin: 0 auto 48px;
    padding: 0 16px;
}

.event-flow-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 4px;
    max-width: 920px;
    margin: 2rem auto ;
}

.flow-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s ease, box-shadow 0.35s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
}

.flow-step:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 14px 40px rgba(168, 85, 247, 0.45), 0 0 24px rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.6);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(236, 72, 153, 0.15) 100%);
}

.flow-step:active {
    transform: translateY(-2px) scale(1.02);
}

.flow-step-num {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--vibrant-1);
    opacity: 0.95;
}

.flow-step:hover .flow-step-num {
    color: var(--vibrant-2);
    animation: flowNumPulse 0.6s ease;
}

@keyframes flowNumPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.flow-step-label {
    white-space: nowrap;
}

.flow-step-tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--vibrant-1), var(--vibrant-2));
    color: #fff;
    opacity: 0.95;
}

.flow-arrow {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.85;
    animation: flowArrowPulse 2s ease-in-out infinite;
}

.flow-arrow:nth-of-type(1) { animation-delay: 0s; }
.flow-arrow:nth-of-type(2) { animation-delay: 0.2s; }
.flow-arrow:nth-of-type(3) { animation-delay: 0.4s; }

.event-flow-line:hover .flow-arrow {
    opacity: 1;
}

body.dark-mode .flow-step {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.12) 100%);
    border-color: rgba(192, 132, 252, 0.45);
}
body.dark-mode .flow-step:hover {
    box-shadow: 0 14px 40px rgba(168, 85, 247, 0.5), 0 0 32px rgba(168, 85, 247, 0.15);
}

@media (max-width: 768px) {
    .event-flow-line { gap: 10px 6px; }
    .flow-step { padding: 10px 14px; font-size: 0.88rem; }
    .flow-arrow { width: 24px; height: 24px; }
}

@keyframes flowArrowPulse {
    0%, 100% { transform: translateX(0) scale(1); filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.4)); }
    50% { transform: translateX(5px) scale(1.1); filter: drop-shadow(0 0 8px var(--vibrant-glow)); }
}

.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Bento Grid ----- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 140px;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 48px;
    perspective: 1200px;
}

.bento-cell {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.bento-cell:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.bento-wide {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

.bento-inner {
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.bento-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.4;
}

.bento-vocal {
    background: linear-gradient(145deg, var(--vibrant-1), #6d28d9);
}
.bento-vocal::before {
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.bento-dance {
    background: linear-gradient(145deg, var(--vibrant-2), #be185d);
}
.bento-dance::before {
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.bento-sns {
    background: linear-gradient(145deg, var(--vibrant-3), #0891b2);
}
.bento-sns::before {
    background: radial-gradient(circle at 60% 60%, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.bento-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.bento-cell:hover .bento-icon {
    transform: scale(1.2) rotate(5deg);
}

.bento-inner h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.bento-inner p {
    font-size: 0.85rem;
    opacity: 0.95;
    margin: 0;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .bento-wide { grid-column: span 1; }
    .bento-tall { grid-row: span 1; }
}

/* ----- 3D Cards ----- */
.cards-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1200px;
}

.card-3d {
    perspective: 800px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card-inner {
    position: relative;
    width: 100%;
    min-height: 220px;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-3d:hover .card-inner,
.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-face.front {
    background: linear-gradient(145deg, #2d2a4a 0%, #1a1830 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body:not(.dark-mode) .card-face.front {
    background: linear-gradient(145deg, #4c4a6a 0%, #2d2a4a 100%);
}

.card-face.back {
    background: linear-gradient(145deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff;
    transform: rotateY(180deg);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.card-face h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-face p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

/* ----- Event Partners ----- */
.event-partners {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

body.dark-mode .event-partners {
    border-top-color: rgba(192, 132, 252, 0.25);
}

/* ----- Event YouTube (행사 개요 끝 영상) ----- */
.event-youtube-wrap {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    width: 100%;
}

body.dark-mode .event-youtube-wrap {
    border-top-color: rgba(192, 132, 252, 0.25);
}

.event-youtube-inner {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    aspect-ratio: 16 / 9;
    background: #000;
}

.event-youtube-inner iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.partners-title {
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    color: var(--text-color);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.partner-card {
    position: relative;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.18);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.partner-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.partner-card > * {
    position: relative;
    z-index: 1;
}

.partner-card .partner-name,
.partner-card .partner-detail,
.partner-card .partner-address {
    color: rgba(255, 255, 255, 0.95);
}

.partner-card .partner-name a:hover {
    color: var(--vibrant-2);
}

.partners-grid .partner-card:nth-child(1) {
    background-image: url("../images/partners/bg - SIRIUS STAR GROUP.webp");
}

.partners-grid .partner-card:nth-child(2) {
    background-image: url("../images/partners/bg - 31 арна.png");
}

body.dark-mode .partner-card {
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .partner-card::before {
    background: rgba(0, 0, 0, 0.6);
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(168, 85, 247, 0.2);
}

/* ----- 협력사 밑 유튜브 쇼츠 (좌/우) ----- */
.partners-shorts-wrap {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    width: 100%;
}

body.dark-mode .partners-shorts-wrap {
    border-top-color: rgba(192, 132, 252, 0.25);
}

.partners-shorts-title {
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    color: var(--text-color);
}

.partners-shorts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 560px;
    margin: 0 auto;
}

.partners-shorts-item {
    width: 100%;
}

.partners-shorts-inner {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    aspect-ratio: 9 / 16;
    background: #000;
}

.partners-shorts-inner iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.partners-shorts-caption {
    margin: 12px 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-color);
}

@media (max-width: 640px) {
    .partners-shorts-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    margin-bottom: 16px;
    padding: 12px 0;
}

.partner-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 180px;
    transition: opacity 0.25s ease;
}

.partner-logo a:hover {
    opacity: 0.85;
}

.partner-logo img {
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0.95);
}

body.dark-mode .partner-logo img {
    filter: brightness(1.05);
}

.partner-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--vibrant-1);
    margin-bottom: 10px;
}

.partner-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text-color);
}

.partner-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.partner-name a:hover {
    color: var(--vibrant-1);
}

.partner-detail,
.partner-address {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    opacity: 0.9;
    margin: 0 0 6px;
}

.partner-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--vibrant-1);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.partner-link:hover {
    color: var(--vibrant-2);
    transform: translateX(4px);
}

/* ----- SNS Section ----- */
.sns-section {
    background: var(--section-bg, #f5f3ff);
}

body.dark-mode .sns-section {
    background: rgba(30, 27, 50, 0.5);
}

.sns-bg-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.sns-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(168, 85, 247, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
}

.sns-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.sns-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.sns-card {
    position: relative;
    padding: 28px 24px;
    background: var(--bg-color, #fff);
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

body.dark-mode .sns-card {
    background: rgba(45, 42, 74, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.sns-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 56px rgba(168, 85, 247, 0.25);
}

/* Micro-interaction: card */
.micro-card {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.micro-card:active {
    transform: translateY(-2px) scale(1.01);
}

.sns-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.sns-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--vibrant-1);
    transition: color 0.2s ease, transform 0.2s ease;
}
.sns-card:hover h4 {
    color: var(--vibrant-2);
    transform: translateX(4px);
}

.sns-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

/* ----- SNS 챌린지 & 광고 밑 유튜브 쇼츠 ----- */
.sns-shorts-wrap {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    width: 100%;
}

body.dark-mode .sns-shorts-wrap {
    border-top-color: rgba(192, 132, 252, 0.25);
}

.sns-shorts-title {
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    color: var(--text-color);
}

.sns-shorts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 560px;
    margin: 0 auto;
    justify-items: center;
}

.sns-shorts-item {
    width: 100%;
    max-width: 280px;
}

.sns-shorts-inner {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    aspect-ratio: 9 / 16;
    background: #000;
}

.sns-shorts-inner iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.sns-shorts-caption {
    margin: 12px 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-color);
}

@media (max-width: 640px) {
    .sns-shorts-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ----- Scrollytelling: Program ----- */
.program-section {
    background: var(--bg-color);
    padding-bottom: 120px;
}

.scrolly-title {
    margin-bottom: 0;
}

.scrolly-container {
    position: relative;
}

.scrolly-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.scrolly-progress {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0%;
    background: linear-gradient(to bottom, var(--vibrant-1), var(--vibrant-2));
    border-radius: 4px;
    transition: height 0.15s ease;
    z-index: 10;
}

.scrolly-step {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    overflow: hidden;
}

.scrolly-step::after {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(12px);
    z-index: -1;
}

.scrolly-step::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.scrolly-step .scrolly-step-num,
.scrolly-step h3,
.scrolly-step p {
    position: relative;
    z-index: 1;
}

.scrolly-step[data-step="0"]::after {
    background-image: url("../images/bg/kazakhstan - Still 1.png");
}

.scrolly-step[data-step="1"]::after {
    background-image: url("../images/bg/kazakhstan - Still 2.png");
}

.scrolly-step[data-step="2"]::after {
    background-image: url("../images/bg/kazakhstan - Still 3.png");
}

.scrolly-step[data-step="3"]::after {
    background-image: url("../images/bg/kazakhstan - Still 4.png");
}

.scrolly-step.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.scrolly-step-num {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--vibrant-1);
    margin-bottom: 12px;
}

.scrolly-step h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--vibrant-1), var(--vibrant-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scrolly-step p {
    font-size: 1.05rem;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

/* 밝은 테마: 어두운 오버레이 위에서 글씨가 보이도록 밝은 색 강제 */
body:not(.dark-mode) .scrolly-step .scrolly-step-num {
    color: rgba(255, 255, 255, 0.95);
}

body:not(.dark-mode) .scrolly-step h3 {
    color: #fff;
    background: linear-gradient(135deg, #e0d4ff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body:not(.dark-mode) .scrolly-step p {
    color: rgba(255, 255, 255, 0.95);
    opacity: 0.95;
}

.scrolly-triggers {
    position: relative;
}

.scrolly-trigger {
    height: 100vh;
    pointer-events: none;
}

@media (max-width: 768px) {
    .scrolly-sticky { min-height: 100vh; height: 100vh; }
    .scrolly-step { padding: 60px 20px; }
    .scrolly-progress { left: 12px; }
}

/* ----- Docs section ----- */
.docs-section {
    background: var(--section-bg, #f8f7fc);
}

body.dark-mode .docs-section {
    background: rgba(20, 18, 35, 0.5);
}

.docs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .docs-grid {
        grid-template-columns: 1fr;
    }
}

.map-3d {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.4s ease;
}

.map-3d:hover {
    transform: perspective(800px) rotateY(0) rotateX(0) scale(1.02);
}

.map-3d img {
    width: 100%;
    height: auto;
    display: block;
}

.map-caption {
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.docs-links h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.docs-links ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.docs-links li {
    margin-bottom: 10px;
}

.doc-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-color);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 12px;
    color: var(--text-color);
    font-weight: 500;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

body.dark-mode .doc-link {
    background: rgba(45, 42, 74, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.doc-link:hover {
    background: rgba(168, 85, 247, 0.15);
    transform: translateX(6px);
    box-shadow: 0 6px 24px var(--vibrant-glow);
}

.micro-link {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.micro-link:focus-visible {
    outline: 2px solid var(--vibrant-1);
    outline-offset: 2px;
}
.micro-link:active {
    transform: translateX(2px);
}

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

.back-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--primary-color, #7c3aed);
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* ----- Dark mode hero ----- */
body.dark-mode .hero-mesh {
    opacity: 0.9;
}

body.dark-mode .hero-bg::before {
    opacity: 0.15;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .hero-kaz {
        padding: 100px 20px 60px;
    }

    .cards-3d {
        grid-template-columns: 1fr;
    }

    .card-3d {
        pointer-events: auto;
    }

    .card-inner {
        min-height: 200px;
    }

    .sns-cards {
        grid-template-columns: 1fr;
    }

    .map-3d {
        transform: none;
    }

    .map-3d:hover {
        transform: scale(1.02);
    }
}
