/* ========================================
   SUM Dance Academy - Stylesheet
   ======================================== */

/* CSS Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #f7f6f2;
    --color-dark: #42403e;
    --color-light: #f7f6f2;
    --color-gray: #bcbcbc;
    --color-border: #c3c3c3;
    --color-overlay: rgba(0, 0, 0, 0.3);
    --color-overlay-dark: rgba(0, 0, 0, 0);
    --color-overlay-darker: rgba(0, 0, 0, 0.9);

    --font-philosopher: 'Philosopher', serif;
    --font-prata: 'Prata', serif;
    --font-pretendard: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-product: 'Product Sans', sans-serif;

    --nav-height: 80px;
    --section-max-width: 1440px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: #1a1a1a;
}

body {
    font-family: var(--font-pretendard);
    background-color: var(--color-bg);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Mobile only - prevent overscroll bounce */
@media (pointer: coarse) {
    html, body {
        overscroll-behavior: none;
    }
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

/* Floating Social Buttons */
.floating-social {
    position: fixed;
    top: 140px;
    left: max(40px, calc((100vw - var(--section-max-width)) / 2 + 40px));
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease, left 0.3s ease;
}

.floating-social.hidden {
    opacity: 0;
    visibility: hidden;
}

.floating-social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
    background: transparent;
}

.floating-social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.floating-social-icon svg {
    width: 18px;
    height: 18px;
}

.floating-social-icon.naver span {
    font-family: var(--font-pretendard);
    font-size: 14px;
    font-weight: 700;
    color: white;
}

ul {
    list-style: none;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
}

.nav-container {
    max-width: var(--section-max-width);
    margin: 0 auto;
    padding: 0 40px;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-philosopher);
    font-size: 28px;
    color: #00000000;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 16px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-pretendard);
    font-size: 14px;
    color: white;
    font-weight: 300;
    transition: opacity 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    opacity: 0.7;
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger .bar {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    padding-top: 40px;
}

.mobile-link {
    font-family: var(--font-pretendard);
    font-size: 20px;
    color: white;
    font-weight: 300;
    transition: opacity 0.3s ease;
}

.mobile-link:hover {
    opacity: 0.7;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 25%),
        linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 25%),
        var(--color-overlay);
}

.hero-overlay::before,
.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    width: 25%;
    height: 100%;
    z-index: 1;
}

.hero-overlay::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
}

.hero-overlay::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
}

/* Video Background */
.video-bg {
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@media (min-aspect-ratio: 16/9) {
    .hero-video {
        height: 56.25vw;
    }
}

@media (max-aspect-ratio: 16/9) {
    .hero-video {
        width: 177.78vh;
    }
}

.hero-content {
    text-align: center;
    color: white;
    padding: 0 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.naver-icon {
    font-family: var(--font-pretendard);
    font-weight: 700;
    font-size: 18px;
}

.hero-title {
    font-family: var(--font-philosopher);
    font-size: 10px;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-logo-img {
    height: 45px;
    width: auto;
}

.hero-subtitle {
    font-family: var(--font-pretendard);
    font-size: 24px;
    font-weight: 200;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.hero-desc {
    font-family: var(--font-pretendard);
    font-size: 18px;
    font-weight: 300;
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 60px;
}

.scroll-indicator {
    display: flex;
    justify-content: center;
}

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

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

/* Hero Visual Section */
.hero-visual {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    z-index: 0;
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.section-header.dark {
    color: white;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.header-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay-dark);
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.header-line {
    width: 1px;
    height: 40px;
    background: var(--color-gray);
    margin: 0 auto 20px;
}

.section-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.logo-icon {
    width: 40px;
    height: auto;
    display: block;
}

.section-title {
    font-family: var(--font-prata);
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--color-gray);
}

.section-subtitle-ko {
    font-family: var(--font-pretendard);
    font-size: 18px;
    font-weight: 300;
    color: var(--color-gray);
}

/* ========================================
   About Section
   ======================================== */
.about {
    background: var(--color-bg);
}

.about-content {
    max-width: var(--section-max-width);
    margin: 0 auto;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-text {
    padding-top: 40px;
}

.about-highlight {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-text p {
    font-weight: 300;
    font-size: 16px;
    line-height: 2;
    margin-bottom: 20px;
}

.about-closing {
    font-weight: 400 !important;
    margin-top: 30px;
}

/* ========================================
   Profile Section
   ======================================== */
.profile {
    background: var(--color-bg);
}

.profile-main-wrapper {
    background: #1a1a1a;
}

.profile-main {
    padding: 80px 40px;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: var(--section-max-width);
    margin: 0 auto;
}

.profile-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.profile-card.main-card {
    width: calc(95% - 30px);
    max-width: 600px;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 210px;
    height: 314px;
    object-fit: cover;
    border: 1px solid #ffffff00;
}

.profile-info.light {
    color: var(--color-light);
}

.profile-info.dark {
    color: var(--color-dark);
}

.profile-name {
    font-family: var(--font-pretendard);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.profile-name strong {
    font-weight: 700;
}

.profile-name span {
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 1px;
}

.profile-career,
.main-card .profile-career,
.sub-card .profile-career {
    list-style: disc;
    padding-left: 20px;
    font-size: 13px;
    line-height: 2;
    letter-spacing: 0.3px;
}

.profile-career li {
    margin-bottom: 3px;
}

.profile-career strong {
    font-weight: 700;
}

/* Sub Instructors */
.profile-sub {
    padding: 80px 40px;
    max-width: var(--section-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.profile-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.sub-card {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.sub-card .profile-image {
    flex-shrink: 0;
}

.sub-card .profile-image img {
    width: 180px;
    height: 270px;
}

.sub-card .profile-info {
    flex: 1;
    min-width: 0;
}

.sub-card .profile-name {
    font-size: 24px;
    margin-bottom: 20px;
}

/* ========================================
   Programs Section
   ======================================== */
.programs {
    background: var(--color-bg);
}

.programs-content {
    max-width: var(--section-max-width);
    margin: 0 auto;
    padding: 80px 40px;
}

.program-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: center;
}

.program-item:last-child {
    margin-bottom: 0;
}

.program-item.reverse {
    direction: rtl;
}

.program-item.reverse > * {
    direction: ltr;
}

.program-image {
    width: 100%;
}

.program-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.program-image img.align-top {
    object-position: top;
}

.program-info {
    padding: 20px 0;
}

.program-title {
    font-family: var(--font-prata);
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--color-dark);
}

.program-desc {
    font-size: 15px;
    line-height: 1.9;
    font-weight: 300;
    color: var(--color-dark);
}

/* ========================================
   Schedule Section
   ======================================== */
.schedule {
    background: var(--color-bg);
}

.schedule-content {
    max-width: var(--section-max-width);
    margin: 0 auto;
    padding: 80px 40px;
}

.schedule-table-wrapper {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: center;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid var(--color-border);
    padding: 20px 15px;
    vertical-align: middle;
}

.schedule-table th {
    background: var(--color-dark);
    color: white;
    font-weight: 500;
}

.schedule-table .time-cell {
    background: #f0efeb;
    font-weight: 500;
    white-space: nowrap;
}

.schedule-table td {
    background: white;
    min-width: 120px;
}

.time-note {
    font-size: 12px;
    color: #888;
}

/* ========================================
   Awards Section
   ======================================== */
.awards {
    background: var(--color-bg);
}

.awards-content {
    max-width: var(--section-max-width);
    margin: 0 auto;
    padding: 80px 40px;
}

.awards-section {
    margin-bottom: 80px;
}

.awards-section:last-child {
    margin-bottom: 0;
}

.awards-section-title {
    font-family: var(--font-prata);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 40px;
    text-align: center;
    color: var(--color-dark);
}

/* Admission Section */
.admission-section {
    background: #F7F6F2;
    padding: 80px 40px;
    margin: 0 -40px;
}

/* Honors Section */
.honors-section {
    background: #F7F8FA;
    padding: 80px 40px;
    margin: 0 -40px;
}

.admission-header {
    margin-bottom: 60px;
}

.admission-header-en {
    display: block;
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.admission-header-ko {
    font-family: var(--font-pretendard);
    font-size: 32px;
    font-weight: 700;
    color: #42403E;
    margin: 0;
}

.admission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
}

.admission-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.admission-school {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admission-school img {
    width: auto;
    height: 50px;
    max-width: 150px;
    object-fit: contain;
    object-position: left center;
}

.admission-school .student-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 2;
    color: #555;
    letter-spacing: -0.02em;
}

.admission-school .student-list li {
    padding: 0;
}

.awards-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.awards-category {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-dark);
    letter-spacing: -0.02em;
}

.awards-list {
    list-style: none;
    padding-left: 0;
    font-size: 14px;
    line-height: 2.2;
    letter-spacing: -0.02em;
}

.awards-list li {
    position: relative;
    padding-left: 16px;
}

.awards-list li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: var(--color-dark);
}

.awards-list li strong {
    color: var(--color-dark);
    font-weight: 600;
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
    background: var(--color-bg);
}

.gallery-content {
    max-width: var(--section-max-width);
    margin: 0 auto;
    padding: 80px 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

a.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========================================
   Location Section
   ======================================== */
.location {
    background: var(--color-bg);
}

.location-content {
    max-width: var(--section-max-width);
    margin: 0 auto;
    padding: 60px 40px;
}

.location-info {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.location-logo {
    flex-shrink: 0;
}

.location-logo img {
    height: 50px;
    width: auto;
}

.location-details {
    flex: 1;
}

.location-address,
.location-phone {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.location-icon {
    flex-shrink: 0;
    font-size: 16px;
}

.location-address-en {
    display: block;
    font-size: 12px;
    color: var(--color-gray);
    margin-top: 4px;
}

.location-map-full {
    width: 100%;
    background: #F7F8FA;
}

.location-map-full img {
    display: block;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1400 / 512;
    object-fit: cover;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-dark);
    color: #ffffff00;
    padding: 40px 20px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-philosopher);
    font-size: 32px;
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 30px;
    width: auto;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 13px;
    color: var(--color-gray);
}

/* ========================================
   Responsive - Tablet
   ======================================== */
@media screen and (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image img {
        height: 400px;
    }

    .profile-main {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .profile-card.main-card {
        max-width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-career {
        text-align: left;
    }

    .profile-row {
        grid-template-columns: 1fr;
    }

    .sub-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .program-item,
    .program-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .admission-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 30px;
    }

    .admission-section {
        padding: 60px 30px;
        margin: 0 -30px;
    }

    .floating-social {
        left: 40px;
        top: 130px;
    }

    .awards-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .location-content {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Responsive - Mobile
   ======================================== */
@media screen and (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    /* Navigation */
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .nav-container {
        padding: 0 20px;
    }

    .nav-logo {
        font-size: 24px;
    }

    /* Hero */
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .social-icons {
        margin-bottom: 40px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    /* Section Headers */
    .section-header {
        height: 200px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle-ko {
        font-size: 14px;
    }

    /* About */
    .about-content {
        padding: 40px 20px;
    }

    .about-image img {
        height: 300px;
    }

    .about-highlight {
        font-size: 16px;
    }

    .about-text p {
        font-size: 14px;
    }

    /* Profile */
    .profile-main {
        padding: 40px 20px;
    }

    .profile-sub {
        padding: 40px 20px;
    }

    .profile-name {
        font-size: 24px;
    }

    .profile-image img,
    .sub-card .profile-image img {
        width: 160px;
        height: 240px;
    }

    /* Programs */
    .programs-content {
        padding: 40px 20px;
    }

    .program-image img {
        height: 250px;
    }

    .program-title {
        font-size: 22px;
    }

    .program-desc {
        font-size: 14px;
    }

    /* Schedule */
    .schedule-content {
        padding: 40px 20px;
    }

    .schedule-table {
        font-size: 12px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 12px 8px;
    }

    /* Awards */
    .awards-content {
        padding: 40px 20px;
    }

    .admission-section {
        padding: 40px 20px;
        margin: 0 -20px;
    }

    .admission-header-ko {
        font-size: 24px;
    }

    .admission-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .admission-school img {
        height: 40px;
    }

    .admission-school .student-list {
        font-size: 13px;
        line-height: 1.8;
    }

    .floating-social {
        top: 100px;
        left: 20px;
        gap: 6px;
    }

    .floating-social-icon {
        width: 36px;
        height: 36px;
    }

    .floating-social-icon svg {
        width: 16px;
        height: 16px;
    }

    .awards-section-title {
        font-size: 20px;
    }

    .awards-category {
        font-size: 16px;
    }

    .awards-list {
        font-size: 13px;
        line-height: 2;
    }

    .awards-images img {
        height: 150px;
    }

    .awards-logos {
        gap: 30px;
    }

    .awards-logos img {
        height: 40px;
    }

    /* Gallery */
    .gallery-content {
        padding: 40px 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Location */
    .location-content {
        padding: 40px 20px;
    }

    .map-placeholder {
        height: 300px;
    }

    /* Footer */
    .footer {
        padding: 30px 20px;
    }

    .footer-logo {
        font-size: 28px;
    }
}

/* ========================================
   Responsive - Small Mobile
   ======================================== */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .awards-images {
        grid-template-columns: 1fr;
    }

    .awards-images img {
        height: 200px;
    }
}
