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

:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-light: #f5f5f5;
    --color-gray: #666666;
    --color-accent: #0066ff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-black);
    background: var(--color-white);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    position: relative;
    display: block;
    height: 40px;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

/* 로고 전환: 기본 상태에서는 컬러 로고, 스크롤 시 블랙 로고 */
.logo-black {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
}

.header.scrolled .logo-color {
    opacity: 0;
}

.header.scrolled .logo-black {
    opacity: 1;
}

.header.scrolled .logo a {
    height: 32px;
}

.header.scrolled .logo-img {
    height: 32px;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-black);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
}

.nav-menu a:hover {
    opacity: 0.6;
}

.nav-contact {
    padding: 0.75rem 2rem;
    border: 1px solid var(--color-black);
    border-radius: 0;
}

.nav-contact:hover {
    background: var(--color-black);
    color: var(--color-white);
    opacity: 1;
}

/* Hero Fullscreen */
.hero-fullscreen {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('shutterstock_2555674703.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

/* Page-specific hero backgrounds */
body.page-ai .page-hero-clean {
    background: url('shutterstock_2502100875.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    color: white;
}

body.page-entertainment .page-hero-clean {
    background: url('shutterstock_2507598947.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    color: white;
}

body.page-research .page-hero-clean {
    background: url('shutterstock_2530391199.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    color: white;
}

body.page-ai .page-hero-clean::before,
body.page-entertainment .page-hero-clean::before,
body.page-research .page-hero-clean::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

body.page-ai .page-hero-clean .container,
body.page-entertainment .page-hero-clean .container,
body.page-research .page-hero-clean .container {
    position: relative;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
}

.hero-title {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0.9;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.hero-cta {
    margin-top: 3rem;
}

.btn-hero {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background: var(--color-white);
    color: var(--color-black);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--color-white);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--color-white);
    margin: 1rem auto 0;
    animation: scrollAnimation 2s ease-in-out infinite;
}

@keyframes scrollAnimation {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

/* Services Section */
.services-section {
    padding: 10rem 0;
    background: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-gray);
    font-weight: 300;
}

.services-grid-clean {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.service-card-clean {
    padding: 4rem 3rem;
    border: 1px solid #e0e0e0;
    position: relative;
    transition: all 0.3s ease;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.service-card-clean:hover {
    background: var(--color-gray-light);
}

.service-number {
    font-size: 1rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
    font-weight: 300;
}

.service-card-clean h3 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.service-card-clean p {
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
    flex: 1;
}

.service-arrow {
    font-size: 2rem;
    color: var(--color-black);
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.service-card-clean:hover .service-arrow {
    transform: translateX(10px);
}

/* Image Divider */
.image-divider {
    height: 60vh;
    overflow: hidden;
}

.image-divider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* About Section */
.about-section {
    padding: 10rem 0;
    background: var(--color-gray-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.stat-item {
    border-left: 1px solid var(--color-black);
    padding-left: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Contact Section */
.contact-section {
    padding: 10rem 0;
    background: var(--color-black);
    color: var(--color-white);
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.contact-content > p {
    font-size: 1.1rem;
    margin-bottom: 4rem;
    opacity: 0.7;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 6rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

.contact-item a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.6;
}

.location-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.location-link {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
    position: relative;
    padding-left: 1.5rem;
    text-align: left;
}

.location-link::before {
    content: '📍';
    position: absolute;
    left: 0;
    font-size: 0.85rem;
}

.location-link:hover {
    opacity: 0.6;
}

/* Footer */
.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    font-size: 0.85rem;
    opacity: 0.5;
}

.footer-right {
    display: flex;
    gap: 2rem;
}

.footer-right a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-right a:hover {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .container,
    .nav-container {
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .services-grid-clean {
        grid-template-columns: 1fr;
    }

    .service-card-clean {
        border-left: none;
        border-right: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-right {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .services-section,
    .about-section,
    .contact-section {
        padding: 5rem 0;
    }

    .contact-content h2 {
        font-size: 2rem;
    }
}
