:root {
  /* neutral scale (dark → light) */
  --n-01: #4F4A43;
  --n-02: #7A7368;
  --n-03: #9E927C;
  --n-04: #A79F92;
  --n-05: #B8AE99;
  --n-06: #C2B8A3;
  --n-07: #D6E0D4;
  --n-08: #EEE9DF;
  --n-09: #F7F5F1;

  /* shadow */
  --shadow-double:
    0px 4px 6px -1px rgba(0,0,0,0.10),
    0px 2px 4px -1px rgba(0,0,0,0.06);

  /* border */
  --border-light: 1px solid rgba(255, 255, 255, 0.6);
  --border-dark: 3px solid rgba(255, 255, 255, 0.5);
}

/* ==================== font ==================== */
@font-face {
    font-family: 'CookieRun';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/CookieRun-Regular.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

/* ==================== animation ==================== */

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

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

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

@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px rgba(107, 143, 214, 0.4); }
    50% { text-shadow: 0 0 40px rgba(200, 182, 166, 0.8); }
}

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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


.cursor {
    width: 22px;
    height: 22px;
    border: 2px solid var(--n-05);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--n-03);
    background: transparent;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    will-change: transform;
}


.heart {
    position: fixed;
    font-size: 20px;
    pointer-events: none;
    z-index: 9997;
    animation: floatUp 3s ease-in-out forwards;
    opacity: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-stars {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    color: var(--n-08);
    font-size: 12px;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}



#container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ==================== header & navigation ==================== */

header {
    width: 100%;
    height: 100px;
    position: relative;
}

nav {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#top_menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#top_menu > li {
    position: relative;
}

#top_menu > li > a {
    text-decoration: none;
    display: block;
    color: var(--n-01);
    padding: 14px 28px;
    font-family: 'CookieRun';
    font-size: 18px;
    white-space: nowrap;
}

#top_menu > li > a:hover {
    text-decoration: none;
    color: var(--n-05);
    transform: scale(1.1) translateY(-3px);
}


/* ==================== Click Dropdown Menu ==================== */

.dropdown-click {
    position: relative;
}

.dropdown-click-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--n-09);
    backdrop-filter: blur(10px);
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(17, 45, 78, 0.15);
    border-radius: 20px;
    padding: 15px 0;
    margin-top: 10px;
    z-index: 1000;
    border: 1px solid var(--n-06);
    list-style: none;
}

.dropdown-click-content.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.dropdown-click-content li {
    margin: 0;
}

.dropdown-click-content li a {
    display: block;
    padding: 12px 25px;
    color: var(--n-01);
    text-decoration: none;
    font-family: 'CookieRun';
    font-size: 17px;
    transition: all 0.3s ease;
    border-radius: 0;
    background: transparent;
    transform: none;
    box-shadow: none;
}

.dropdown-click-content li a:hover {
    color: var(--n-09);
    background: var(--n-07)
}

/* Arrow indicator on dropdown button */
.dropdown-click > a::after {
    content: ' ▾';
    font-size: 0.8em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Rotate arrow when dropdown is open */
.dropdown-click.active > a::after {
    transform: rotate(180deg);
    display: inline-block;
}

/* Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ==================== BASE ==================== */
html, body {
    margin: 0;
    padding: 0;
    background: var(--n-09);
    color: var(--n-01);
    font-family: 'Pretendard', 'Segoe UI', 'Arial', sans-serif;
    cursor: none;
}

/* ==================== GLOBAL TYPOGRAPHY ==================== */

h1, h2, h3, h4 {
  font-family: 'CookieRun';
  letter-spacing: 0.15em;
  text-align: center;
}

h1 { font-size: 32px; color: var(--n-06); }
h2 { font-size: 28px; color: var(--n-06); }
h3 { font-size: 24px; color: var(--n-06); }
h4 { font-size: 18px; color: var(--n-06); }

hr {
  border: none;
  height: 1px;
  background: var(--n-08);
  margin: 28px 0;
  opacity: 0.8;
}

p {
  font-size: 15px;
  color: var(--n-02);
  margin: 12px 0;
  font-family: 'Pretendard', sans-serif;
}


p.small {
  font-size: 13px;
  color: var(--n-04);
  text-align: center;
  font-family: 'CookieRun';
}

p.large {
    font-size: 17px;
    color: var(--n-02);
    text-align: center;
    font-family: 'CookieRun';
}


ul {
    color: var(--n-02);
    line-height: 2em;
}

a {
    color: var(--n-03);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--n-05);
}


/* ==================== MAIN ==================== */
.main_text {
    width: 100%;
    height: 200px;
    margin: 10px auto;
    text-align: center;
    margin-top: 50px;
}

.main_img {
    width: 100%;
    height: 100%;
    text-align: center;
}

.main_img > img {
    width: 300px;
    height: auto;
    animation: bounce 3s ease-in-out infinite;
}

/* ==================== About ==================== */
.about {
  max-width: 1200px;
  min-height: 720px;
  margin: 50px auto;
  padding: 0 40px;

  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 40px;
}

.left {
    grid-row: span 4;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    animation: fadeInLeft 1s ease;
}

.left > img {
    width: 250px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 30px;
    box-shadow: var(--shadow-double);
    border: var(--border-light);
    animation: pulse 3s ease-in-out infinite;
}


.right {
    padding: 40px 48px;
    border-radius: 24px;
    background: rgba(255,255,255,0.55);
    box-shadow: var(--shadow-double);
    border: var(--border-light);
}

.skill {
    position: relative;
    float: left;
}

.skill > ul {
    padding: 0;
    margin: 0;
    display: flex;
}

.skill > ul > li {
    margin: 5px;
    transition: all 0.3s ease;
}

.skill > ul > li:hover {
    transform: translateY(-5px) scale(1.1);
}

.skill > ul > li > img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(107, 143, 214, 0.3));
}

/* ==================== Resources ==================== */
.resources {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 222, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: var(--shadow-double);
    border: var(--border-dark);
}


/* ==================== Contact ==================== */

.ct_box {
    width: 400px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 222, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px;
    margin: 20px auto;
    box-shadow: var(--shadow-double);
    border: var(--border-dark);
}


.ct_img {
    width: 400px;
    padding: 30px;
    margin: 20px auto;
    text-align: center;
    position: relative;
    bottom: 10px;
    animation: float 6s ease-in-out infinite;
}

.ct_img > img {
    width: 300px;
    opacity: 0.8;
    height: auto;
}

/* ==================== Design ==================== */
.work {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
}
.work_list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.work_list li {
    margin: 20px;
    padding: 0;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
}
.work_list a {
    width: 800px;
    margin: 30px auto;
    text-align: center;
}
.work_list img {
    width: 100%;
    height: auto;
    z-index: 5;
}
.work_list .caption {
    position: absolute;
    top: 200px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    z-index: 10;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    transition: all 0.5s ease-in-out;
}
.work_list li:hover .caption {
    opacity: 1;
    transform: translateY(-200px);
}


/* ==================== Motion ==================== */

.ticket-gallery {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 0 20px 40px 20px;
    position: relative;
    z-index: 2;
}

.ticket-card {
    background: linear-gradient(135deg, var(--n-09) 0%, var(--n-07) 100%);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform: rotate(0deg);
    box-shadow: var(--shadow-double);
    border: var(--border-light);
}

.ticket-card:hover {
    transform: translateY(-15px) rotate(2deg) scale(1.03);
    box-shadow: var(--shadow-double);
    border: var(--border-dark);
}

.ticket-top {
    background: linear-gradient(135deg, var(--n-08) 0%, var(--n-08) 100%);
    padding: 25px;
    position: relative;
}

.ticket-top::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: radial-gradient(circle at 10px 0, transparent 10px, var(--n-08) 10px);
    background-size: 20px 20px;
    background-position: 0 0;
}

.movie-title {
    font-size: 16px;
    color: var(--n-04);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    font-family: 'CookieRun';
}

.ticket-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--n-09);
}

.ticket-media img,
.ticket-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ticket-card:hover .ticket-media img,
.ticket-card:hover .ticket-media video {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(107, 143, 214, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ticket-card:hover .play-overlay {
    opacity: 1;
}

.ticket-bottom {
    padding: 20px 25px;
    background: var(--n-09);
}

.ticket-desc {
    color: var(--n-02);
    font-size: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px dashed var(--n-08);
    font-family: 'Pretendard';
}

.ticket-card::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 45%;
    width: 10px;
    height: 10%;
    background: var(--n-07);
    border-radius: 0 50% 50% 0;
    z-index: 1;
}

.ticket-card::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 45%;
    width: 10px;
    height: 10%;
    background: var(--n-07);
    border-radius: 50% 0 0 50%;
    z-index: 1;
}

.motion-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(107, 143, 214, 0.3);
    backdrop-filter: blur(20px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.motion-modal.active {
    display: flex;
}

.motion-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.motion-modal-content img,
.motion-modal-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: var(--shadow-double);
    border: var(--border-dark);
}

.close-motion-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: var(--n-09);
    border: 3px solid var(--n-03);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;

    display: flex;
    align-items: center;
    justify-content: center;
}

.close-motion-modal::before,
.close-motion-modal::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 3px;
    background: var(--n-03);
    border-radius: 2px;
}

.close-motion-modal::before {
    transform: rotate(45deg);
}

.close-motion-modal::after {
    transform: rotate(-45deg);
}

/* Hover effect - rotates the whole button */
.close-motion-modal:hover {
    background: var(--accent-mid);
    border-color: var(--n-09);
    transform: rotate(90deg) scale(1.1);
}

.close-motion-modal:hover::before,
.close-motion-modal:hover::after {
    background: var(--n-09);
}



/* ==================== Slide / Storytelling Page ==================== */

.slider-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.main-display {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  position: relative; /* Enable positioning for arrows */
}

.main-display video {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 6;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Navigation Arrows - Netflix Style */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 32px;
  color: var(--n-02);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 10;
  opacity: 1; /* Start fully visible */
}

.prev-arrow {
  left: 10%;
}

.next-arrow {
  right: 10%;
}

.nav-arrow:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* Faded state after initial display */
.nav-arrow.faded {
  opacity: 0.2;
  transition: opacity 1s ease;
}

/* Show arrows on hover over main-display */
.main-display:hover .nav-arrow.faded {
  opacity: 1;
}


.thumbnail-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.thumbnail {
  width: 160px;
  height: 107px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.thumbnail:hover {
  opacity: 0.85;
}

.thumbnail.active {
  opacity: 1;
  outline: 2px solid var(--n-03);
}


.thumbnail-viewport {
  width: calc(180px * 3); /* 썸네일 3개 */
  overflow: hidden;
}

.thumbnail-track {
  display: flex;
  gap: 20px;
  transition: transform 0.3s ease;
}

.thumbnail-scroll-btn {
  background: var(--n-05);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--n-09);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.thumbnail-scroll-btn:hover {
  background: var(--n-03);
  transform: scale(1.1);
}


/* ==================== footer ==================== */
footer {
    width: 100%;
    height: 120px;
    text-align: center;
    font-size: 0.8em;
    line-height: 1.8em;
    
    /* Center vertically */
    display: flex;
    align-items: center;
    justify-content: center;
}