/* ======================
    CSS Variables & Reset
   ====================== */
:root {
    --primary-color: #008080; /* Deep Teal */
    --primary-hover: #006666;
    --accent-color: #00A3FF;  /* Electric Blue - for small highlights */
    --bg-light: #ffffff;
    --bg-ice: #F0F4F8;        /* Ice Blue */
    --bg-dark: #121212;
    --text-main: #333333;
    --text-white: #ffffff;
    --text-gray: #666666;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ======================
    Typography & Utils
   ====================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.text-center { text-align: center; }
.text-white { color: var(--text-white) !important; }

.bg-ice { background-color: var(--bg-ice); }
.bg-dark { background-color: var(--bg-dark); }
.bg-primary { background-color: var(--primary-color); }

.section {
    padding: 100px 20px;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 15px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-desc {
    color: var(--text-gray);
    margin-bottom: 50px;
    font-size: 1.1rem;
    font-weight: 300;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--text-white);
}


/* ======================
    Header & Navigation
   ====================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    transition: all 0.4s ease;
    background: transparent;
}

#header.scrolled {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -1px;
    z-index: 101; /* Above overlay */
}

/* Desktop Nav (Hidden on Mobile) */
.desktop-nav {
    display: none;
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--accent-color);
}

/* Hamburger Menu (Mobile) */
.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 101; /* Above overlay */
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(15px);
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.overlay-nav ul {
    text-align: center;
}

.overlay-nav li {
    margin: 25px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.menu-overlay.active .overlay-nav li {
    opacity: 1;
    transform: translateY(0);
}

.overlay-nav a {
    color: var(--text-white);
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    transition: color 0.3s;
}

.overlay-nav a:hover {
    color: var(--primary-color);
}

.overlay-sns {
    margin-top: 50px;
    display: flex;
    gap: 20px;
    opacity: 0;
    transition: all 0.5s ease 0.3s;
}

.menu-overlay.active .overlay-sns {
    opacity: 1;
}

.overlay-sns a {
    color: var(--text-white);
    font-size: 1.5rem;
    transition: color 0.3s;
}
.overlay-sns a:hover {
    color: var(--accent-color);
}

/* ======================
    Hero Section
   ====================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

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

.hero-bg .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: -2;
}

.hero-bg .slide.active {
    opacity: 1;
}

.overlay-black {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.hero-content {
    text-align: center;
    color: var(--text-white);
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.9;
}


/* ======================
    Intro & CEO Section
   ====================== */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
}

.ceo-profile {
    background-color: #FF8C00;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.2);
}

.ceo-profile img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: top;
    mix-blend-mode: multiply;
    opacity: 0.85;
}

.profile-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(255, 140, 0, 1) 0%, rgba(255, 140, 0, 0.8) 50%, rgba(255, 140, 0, 0) 100%);
    color: var(--text-white);
}

.profile-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.profile-info span {
    font-size: 2.2rem;
    font-weight: 800;
}

.profile-info ul {
    font-size: 0.95rem;
    font-weight: 400;
}

.profile-info li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.profile-info li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background: var(--text-white);
    border-radius: 50%;
}

.intro-content h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 25px;
    line-height: 1.5;
}

.intro-content p {
    color: var(--text-gray);
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.intro-content strong {
    font-weight: 600;
    color: var(--text-main);
}

/* ======================
    About Section
   ====================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.about-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
}

.icon-wrap {
    width: 60px;
    height: 60px;
    background-color: var(--bg-ice);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.sns-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}


/* ======================
    Core Values Section
   ====================== */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

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

.value-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: #FF8C00;
    line-height: 1;
    min-width: 60px;
    padding-top: 2px;
}

.value-content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-main);
}

.value-content p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ======================
    Productions Grid
   ====================== */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

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

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 300;
}


/* ======================
    History Grid
   ====================== */
.history-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.history-list {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.history-list li {
    margin-bottom: 8px;
}


/* ======================
    Organization
   ====================== */
.org-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.org-card {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.org-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,128,128,0.05);
}

.org-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.org-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}


/* ======================
    Partners
   ====================== */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.logo-box {
    background: var(--bg-light);
    padding: 30px 10px;
    border-radius: 8px;
    font-weight: 700;
    color: #999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.3s;
}

.logo-box:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}


/* ======================
    Contact & Footer
   ====================== */
.contact-section {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #004d4d 100%);
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--bg-ice);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 4px;
    background: rgba(255,255,255,0.9);
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--accent-color);
}

.submit-btn {
    background-color: var(--text-main);
    color: var(--text-white);
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--bg-dark);
}

.footer {
    background-color: var(--bg-dark);
    color: var(--text-gray);
    padding: 60px 20px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.copyright {
    font-size: 0.9rem;
}


/* ======================
    Animations (Intersection Observer)
   ====================== */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}
.fade-in.appear {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.slide-up.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }


/* ======================
    Media Queries (Desktop)
   ====================== */
@media screen and (min-width: 768px) {
    /* Layout */
    .intro-grid { grid-template-columns: 1fr 1.2fr; align-items: start; gap: 60px; }
    .about-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 50px; }
    .values-grid { grid-template-columns: repeat(2, 1fr); gap: 60px 40px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .history-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .org-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-grid { grid-template-columns: repeat(4, 1fr); }
    /* .contact-box grid override removed to stack vertically */
    
    /* Typography */
    .hero-content h1 { font-size: 4.5rem; }
    .hero-content p { font-size: 1.3rem; }
    .section-title { font-size: 3rem; }
    
    /* Header */
    .hamburger { display: none; }
    .desktop-nav { display: block; }
    
    .menu-overlay { display: none !important; }
}
