/* ========================================
   HYPE LAB - Main Stylesheet
   ======================================== */

/* Google Fonts - Poppins (similar to the PDF font) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Navigation (Fixed/Floating)
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    height: 40px;
}

.nav-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #000;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-contact-btn {
    background: #1a1a1a;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-contact-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    width: 100%;
    height: 760px;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 40px 80px;
    background: url('/images/main/main.png') center center / cover no-repeat;
}

.hero-content {
    max-width: 900px;
}

.hero-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
    color: #fff;
}

.hero-title-line {
    display: block;
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: #fff;
    margin: 30px auto;
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1.1rem;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
   Section Common Styles
   ======================================== */
section {
    padding: 10px 40px 100px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 30px !important;
}

/* ========================================
   Company Overview Section
   ======================================== */
.overview {
    background: #fff;
    padding: 0;
}

.overview-header {
    text-align: center;
    padding: 100px 40px 60px;
    background: #fff;
}

.overview-main-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.overview-main-subtitle {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.overview-black-section {
    background: #000;
    padding: 60px 40px 80px;
}

.overview-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.overview-row:last-child {
    margin-bottom: 0;
}

.overview-row.reverse {
    direction: rtl;
}

.overview-row.reverse > * {
    direction: ltr;
}

.overview-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    display: block;
}

.overview-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.overview-text .tags {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

.overview-text .divider {
    width: 40px;
    height: 2px;
    background: #fff;
    margin-bottom: 20px;
}

.overview-text .desc {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.8;
}

/* ========================================
   Core Values Section
   ======================================== */
.core-values {
    background: #fff;
    padding: 10px 40px 100px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    border: 2px dashed #ccc;
    border-radius: 20px;
    background: #fff;
}

.value-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #1a1a1a;
}

.value-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    background: #fff;
    padding: 10px 40px 100px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.service-card {
    text-align: left;
    padding: 0;
    background: transparent;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #1a1a1a;
}

.service-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
}

/* ========================================
   Event Video Section - New Gallery Style
   ======================================== */
.event-video {
    background: #fff;
    color: #1a1a1a;
    padding: 10px 40px 100px;
}

.event-video .section-title {
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

.video-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.video-main-wrapper {
    flex: 1;
    max-width: 850px;
}

.video-thumbnail-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
}

.video-display {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.3);
}

.video-overlay.hidden {
    display: none;
}

.play-button-youtube {
    width: 68px;
    height: 48px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.play-button-youtube:hover {
    transform: scale(1.1);
}

.play-button-youtube svg {
    width: 100%;
    height: 100%;
}

.play-button-youtube .play-bg {
    transition: fill 0.2s ease;
}

.play-button-youtube:hover .play-bg {
    fill: #cc0000;
}

.video-watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.5;
}

.hype-logo-watermark {
    width: 100%;
    height: 100%;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-iframe.hidden {
    display: none;
}

/* Apply Button */
.video-apply-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #0d6b4b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-apply-btn:hover {
    background: #0a5a3d;
    transform: translateY(-2px);
}

/* Video Caption */
.video-caption {
    text-align: center;
    margin-top: 25px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* Placeholder style */
.video-placeholder-new {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
}

.video-placeholder-new .video-caption {
    color: #aaa;
    margin-top: 20px;
}

/* Vertical Dot Navigation */
.video-dots-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

.video-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.video-dot:hover {
    background: #bbb;
}

.video-dot.active {
    background: #1a1a1a;
    transform: scale(1.2);
}

/* ========================================
   Timeline Section
   ======================================== */
.timeline {
    background: #fff;
    padding: 10px 40px 100px;
}

.timeline-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
}

.timeline-tab {
    padding: 12px 30px;
    border: 2px solid #1a1a1a;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    color: #1a1a1a;
}

.timeline-tab:hover {
    background: #f5f5f5;
}

.timeline-tab.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.timeline-content {
    display: none;
}

.timeline-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 40px;
}

.timeline-month {
    background: #fff;
    padding: 20px 0;
    min-height: auto;
}

.timeline-month-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.timeline-item {
    font-size: 0.8rem;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.6;
    padding-left: 15px;
    position: relative;
}

.timeline-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1a1a1a;
}

/* ========================================
   Simple YouTube Card Gallery
   ======================================== */
.video-gallery-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.yt-card {
    position: relative;
    width: 100%;
    max-width: 700px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: #000;
    aspect-ratio: 16 / 9;
}

.yt-thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.yt-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.yt-card:hover .yt-thumbnail {
    transform: scale(1.02);
}

.yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 10;
}

.yt-card:hover .yt-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.yt-play-btn svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}

.yt-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.yt-iframe.hidden {
    display: none;
}

.yt-caption {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 30px;
}

/* Dot Navigation - 오른쪽 세로 배치 */
.yt-dots-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
}

.yt-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.yt-dot:hover {
    background: #bbb;
}

.yt-dot.active {
    background: #1a1a1a;
    transform: scale(1.3);
}

/* Mobile */
@media (max-width: 768px) {
    .video-gallery-simple {
        flex-direction: column;
        gap: 20px;
    }

    .yt-dots-nav {
        flex-direction: row;
        justify-content: center;
    }

    .yt-caption {
        margin-top: 20px;
    }
}
