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

:root {
    --color-bg: #fdfdfd;
    --color-black: #080808;
    --color-dark-gray: #1a1a1a;
    --color-text-dark: #111111;
    --color-text-light: #ffffff;
    --color-text-muted: #888888;
    --color-border-dark: #e0e0e0;
    --color-border-light: rgba(255,255,255,0.2);
    --font-primary: 'Inter', 'Noto Sans KR', sans-serif;
    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text-dark);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; color: inherit; font-family: inherit; }
img { max-width: 100%; display: block; }

/* ===========================
   Header
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 48px;
    background: transparent;
    transition: background 0.3s ease;
}

.header.scrolled {
    background: rgba(253, 253, 253, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-dark);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0); /* Make logo black */
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.2;
}

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

.nav-link {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-text-dark);
    position: relative;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lang-toggle {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.header.scrolled .lang-toggle {
    color: var(--color-text-dark);
}

.admin-link {
    display: flex;
    align-items: center;
    color: var(--color-text-dark);
}

.header.scrolled .admin-link {
    color: var(--color-text-dark);
}

.menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.header.scrolled .menu-toggle {
    background: var(--color-text-dark);
}

.menu-bar {
    width: 18px;
    height: 1.5px;
    background: var(--color-text-light);
    transition: all 0.3s ease;
}

.menu-toggle.active .menu-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .menu-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ===========================
   Mobile Menu
   =========================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 999;
    padding: 140px 48px 48px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-nav-link {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-nav-link:hover {
    color: #b08d57;
}


/* ===========================
   Side Elements
   =========================== */


/* ===========================
   Main Layout & Hero
   =========================== */
.main-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding-top: 140px;
    display: flex;
    flex-direction: column;
}

.hero {
    display: flex;
    padding: 0 120px;
    flex: 1;
    align-items: center;
}

.hero-left {
    flex: 1;
    padding-right: 40px;
}

.hero-subtitle {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text-dark);
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
}

.title-arrow {
    display: inline-block;
    margin-left: 12px;
    font-size: 0.8em;
}

.hero-description {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 48px;
    max-width: 400px;
}

.hero-right {
    flex: 1.2;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.video-container {
    width: 100%;
    max-width: 700px;
    position: relative;
}

.video-wrapper {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    background: #111;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.video-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #111 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}



/* ===========================
   Services
   =========================== */
.services {
    padding: 80px 120px 40px;
    margin-top: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.1); /* 1px gaps will look like borders */
}

.service-card {
    background: #0d0d0d;
    position: relative;
    min-height: 320px;
    height: auto;
    overflow: hidden;
    border-top: 1px solid var(--color-border-light);
    border-right: 1px solid var(--color-border-light);
}

.service-card:nth-child(3) {
    border-right: none;
}

.service-card-inner {
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 2;
    position: relative;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.service-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.service-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.2);
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-light);
    line-height: 1.3;
    margin-bottom: 24px;
}

.service-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: auto;
}

.service-inline-video {
    margin: 24px 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    z-index: 2; /* To be clickable above link-overlay */
    flex-shrink: 0;
}

.service-inline-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

.service-link {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.link-line {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--color-text-light);
}

.service-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-bg-image {
    opacity: 0.3;
}

/* ===========================
   Content Sections (Process & About)
   =========================== */
.content-section {
    padding: 120px;
    background: var(--color-bg);
    color: var(--color-text-dark);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--color-border-dark);
}

/* Process Section */
.process-section {
    background: #fafafa;
}

.process-cards-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.process-card {
    flex: 1;
    background: #fff;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    min-height: 280px;
    position: relative;
    transition: transform 0.3s ease;
}

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

.process-card .step-num {
    font-size: 16px;
    font-weight: 700;
    color: #b08d57;
    margin-bottom: 24px;
}

.process-card .step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(176, 141, 87, 0.3);
    margin-bottom: 24px;
}

.process-card .step-line {
    width: 24px;
    height: 2px;
    background: #b08d57;
    margin-bottom: 20px;
}

.process-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
    line-height: 1.4;
}

.process-card p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* About Section */
/* Inline styles are used for the new About page layout */

/* ===========================
   Modals
   =========================== */
.service-modal, .video-modal, .contact-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.service-modal.active, .video-modal.active, .contact-modal.active {
    opacity: 1;
    pointer-events: all;
}

.service-modal-overlay, .video-modal-overlay, .contact-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.service-modal-content, .contact-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: var(--color-bg);
    padding: 48px;
    z-index: 10000;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.service-modal.active .service-modal-content, 
.contact-modal.active .contact-modal-content {
    transform: translateY(0);
}

.service-modal-close, .video-modal-close, .contact-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 24px;
    color: var(--color-text-dark);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 10000;
}

.video-modal-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.video-modal-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-modal-close {
    color: white;
    top: -40px;
    right: 0;
}

.contact-modal-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.contact-modal-desc { font-size: 14px; color: var(--color-text-muted); margin-bottom: 32px; }
.contact-field { margin-bottom: 20px; }
.contact-field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.contact-field input, .contact-field select, .contact-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border-dark);
    font-family: inherit;
    font-size: 14px;
}
.contact-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--color-black);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.service-modal-header { margin-bottom: 24px; }
.service-modal-num { font-size: 12px; color: var(--color-text-muted); }
.service-modal-title { font-size: 28px; font-weight: 800; }
.service-modal-desc { font-size: 15px; color: var(--color-text-muted); margin-bottom: 24px; }
.btn-contact-modal { display: inline-block; padding: 12px 24px; background: var(--color-black); color: white; margin-top: 24px; font-size: 14px; }

/* Page Header Flex (Process) */
.page-header-flex {
    display: flex;
    align-items: flex-end;
    margin-bottom: 60px;
}
.page-header-desc {
    flex: 1;
    margin-left: 80px;
}

/* ===========================
   Global Footer
   =========================== */
.global-footer {
    background: #000;
    color: #999;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
    width: 100%;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.footer-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.footer-info {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}
.footer-divider {
    color: #666;
}
.footer-copyright {
    margin-top: 16px;
    font-size: 0.8rem;
    color: #666;
}

/* ===========================
   Mobile Responsive Styles
   =========================== */
@media (max-width: 768px) {
    /* Header */
    .header {
        padding: 16px 20px;
    }
    .header-nav {
        display: none; /* Hide top nav links on mobile */
    }
    .header-right {
        gap: 16px; /* Reduce gap between KR and menu */
    }
    .logo {
        font-size: 1.2rem;
    }

    /* Hero */
    .hero {
        flex-direction: column;
        padding: 100px 20px 40px; /* Top padding to clear header */
        align-items: flex-start;
    }
    .hero-left {
        padding-right: 0;
        margin-bottom: 40px;
    }
    .hero-title {
        font-size: 32px; /* Smaller title on mobile */
        word-break: keep-all;
    }
    .hero-description {
        word-break: keep-all;
    }
    .hero-right {
        width: 100%;
        justify-content: center;
    }
    .video-container {
        width: 100%;
    }

    /* Services Grid */
    .services {
        padding: 60px 20px 40px; /* Remove large desktop padding */
    }
    .services-grid {
        grid-template-columns: 1fr; /* Stack vertically */
    }
    .service-card {
        padding: 0;
        min-height: auto;
    }
    .service-card-inner {
        padding: 30px 20px;
    }
    .service-inline-video {
        position: relative;
    }

    /* Content Sections */
    .content-section {
        padding: 60px 20px; /* Less padding on mobile */
    }
    
    /* Process Grid */
    .page-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 40px;
    }
    .page-header-desc {
        margin-left: 0;
        word-break: keep-all;
    }
    .process-cards-wrap {
        flex-direction: column;
        gap: 24px;
    }
    .process-card {
        width: 100%;
        box-sizing: border-box;
    }
    .process-arrow {
        transform: rotate(90deg); /* Arrow points down */
        margin: 10px 0;
    }

    /* Contact Details */
    .contact-details {
        grid-template-columns: 1fr;
    }
    
    /* Detail Page Layouts */
    .detail-hero-title {
        font-size: 32px;
    }
    .detail-hero {
        padding: 120px 20px 60px;
    }
    .detail-main {
        padding: 0 20px 60px;
    }
    
    /* Section Headers */
    .section-title {
        font-size: 28px;
    }
    
    /* Footer */
    .footer-info {
        flex-direction: column;
        gap: 8px;
    }
    .footer-divider {
        display: none;
    }
}
