/* CSS Variables */
:root {
    --bg-color: #121212;
    --bg-darker: #0a0a0a;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --primary-color: #3f51b5;
    /* Deep Indigo for Trust */
    --accent-color: #ff5722;
    /* Safety Orange for Industry Accent */
    --metal-silver: #bdc3c7;
    --border-color: #333;

    --font-main: 'Noto Sans KR', sans-serif;
    --font-eng: 'Roboto', sans-serif;

    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.subtitle {
    display: block;
    font-family: var(--font-eng);
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

p {
    color: var(--text-muted);
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-eng);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.logo .highlight {
    color: var(--metal-silver);
    font-weight: 300;
}

#main-nav ul {
    display: flex;
    gap: 30px;
}

#main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
}

#main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

#main-nav a:hover::after,
#main-nav a.active::after {
    width: 100%;
}

#main-nav a.active {
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    z-index: 1001;
}

.mobile-menu-btn i {
    transition: var(--transition);
}

.mobile-menu-btn.active i {
    transform: rotate(90deg);
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(18, 18, 18, 0.95));
    z-index: 1;
    pointer-events: none;
    /* 마우스 이벤트가 아래 Spline 모델에 전달되도록 함 */
}

.spline-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.spline-container iframe {
    pointer-events: auto;
    /* 마우스 트래킹을 위해 이벤트 수신 활성화 */
}

@media (max-width: 768px) {
    .spline-container {
        opacity: 0.6;
        /* 모바일에서 텍스트 가독성을 위해 투명도 조절 */
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    pointer-events: none;
    /* 텍스트가 마우스 이벤트를 가로채지 않도록 함 */
}


.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    pointer-events: auto;
    /* 버튼 영역은 다시 클릭 가능하게 설정 */
}

.hero-content h2 {
    font-family: var(--font-eng);
    font-size: 1.5rem;
    color: var(--metal-silver);
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.stroke-text {
    -webkit-text-stroke: 1px var(--metal-silver);
    color: transparent;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ddd;
}


.btn {
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.btn-primary {
    background-color: var(--text-color);
    color: #000;
    border: 2px solid var(--text-color);
}

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

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

.btn-outline:hover {
    background-color: var(--text-color);
    color: #000;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 700;
    margin-top: 20px;
    font-size: 1rem;
}

.btn-link i {
    margin-left: 10px;
    transition: var(--transition);
}

.btn-link:hover i {
    transform: translateX(5px);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--metal-silver);
    font-size: 0.8rem;
    z-index: 1;
    animation: bounce 2s infinite;
}

.scroll-down i {
    margin-top: 10px;
}

/* Sub Page Header */
.sub-header {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('images/hero-bg.png') no-repeat center center/cover;
    background-attachment: fixed;
}

.sub-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.sub-header .container {
    position: relative;
    z-index: 2;
}

.sub-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.sub-header p {
    font-size: 1.2rem;
    color: #ccc;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.img-placeholder {
    width: 100%;
    height: 400px;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #444;
    border: 1px solid #333;
}

.about-text .lead {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 500;
}

.about-text .signature {
    margin-top: 30px;
    font-family: var(--font-eng);
    color: #fff;
    font-size: 1.1rem;
}

.check-list {
    margin-top: 30px;
}

.check-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #ccc;
}

.check-list i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 0.9rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    padding: 30px;
    border-left: 3px solid var(--accent-color);
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    transform: translateX(10px);
}

.stat-item .count {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-eng);
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Core Values (About Page) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.value-item {
    text-align: center;
    padding: 40px 20px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    transition: var(--transition);
}

.value-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--metal-silver);
    margin-bottom: 20px;
}

.value-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}

/* Business Section */
.business-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.header-desc {
    max-width: 600px;
    margin: 0 auto;
}

.b-card {
    background-color: #1e1e1e;
    padding: 40px;
    position: relative;
    border: 1px solid #333;
    transition: var(--transition);
    overflow: hidden;
    display: block;
    /* For anchor */
}

.b-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.b-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: #252525;
}

.b-card:hover::before {
    transform: scaleX(1);
}

.b-card-icon {
    font-size: 3rem;
    color: var(--metal-silver);
    margin-bottom: 25px;
}

.b-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.b-card .en-title {
    font-family: var(--font-eng);
    font-size: 0.85rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.b-card .desc {
    margin-bottom: 25px;
    line-height: 1.7;
    color: #aaa;
}

.more-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.more-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.b-card:hover .more-link i {
    transform: translateX(5px);
}

/* Business Details (Business Page) */
.biz-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.biz-detail-grid.reverse {
    direction: rtl;
    /* Quick way to swap columns */
}

.biz-detail-grid.reverse>* {
    direction: ltr;
    /* Reset text direction */
}

.biz-info .icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.biz-info h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.en-subtitle {
    font-family: var(--font-eng);
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.biz-features {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.biz-features h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #fff;
}

.biz-features li {
    margin-bottom: 20px;
}

.biz-features li strong {
    display: block;
    color: var(--metal-silver);
    margin-bottom: 5px;
    font-weight: 500;
}

.biz-features li span {
    color: #888;
    font-size: 0.95rem;
}

.visual-box {
    background-color: #222;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #444;
    border: 1px solid #333;
}

.visual-box i {
    font-size: 4rem;
    margin-bottom: 15px;
}

/* Process Steps */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    flex-wrap: wrap;
    /* For mobile */
}

.step-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.step-num {
    font-family: var(--font-eng);
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color) !important;
    position: relative;
    z-index: 0;
    line-height: 1;
    margin-bottom: 5px;
}

.step-item h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #fff;
    position: relative;
    z-index: 1;
}

.arrow {
    font-size: 1.5rem;
    color: var(--accent-color) !important;
    padding: 0 20px;
}

/* History Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #333;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50px;
    position: relative;
    margin-bottom: 50px;
    width: 50%;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50px;
    margin-left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: -6px;
    width: 14px;
    height: 14px;
    background-color: var(--bg-color);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    right: auto;
    left: -6px;
}

.timeline-item .year {
    position: absolute;
    top: -5px;
    right: -120px;
    width: 100px;
    text-align: left;
    font-family: var(--font-eng);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--metal-silver);
}

.timeline-item:nth-child(even) .year {
    right: auto;
    left: -120px;
    text-align: right;
}

.timeline-item .content {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    width: 100%;
}

.timeline-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
}

/* Contact Details */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-list {
    margin-top: 40px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list i {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 5px;
    margin-right: 20px;
    width: 30px;
    text-align: center;
}

.contact-list h4 {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.contact-list p {
    font-size: 1.1rem;
    color: #fff;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #555;
    border: 1px solid #333;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Inquiry Form */
.inquiry-form-wrapper {
    max-width: 800px;
    margin: 50px auto 0;
    background-color: #1a1a1a;
    padding: 50px;
    border: 1px solid #333;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #0a0a0a;
    border: 1px solid #333;
    color: #fff;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #111;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* CTA Banner (Index) */
.cta-banner {
    position: relative;
    text-align: center;
    background: url('images/hero-bg.png') no-repeat center center/cover;
    background-attachment: fixed;
    padding: 120px 0;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(63, 81, 181, 0.8);
    /* Primary color overlay */
    mix-blend-mode: multiply;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.cta-content .btn-primary {
    background-color: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.cta-content .btn-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Footer */
footer {
    padding: 30px 0;
    background-color: #000;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-logo {
    font-family: var(--font-eng);
    font-weight: 700;
    color: #555;
    margin-bottom: 10px;
}

.copyright {
    font-size: 0.8rem;
    color: #444;
}

/* Animations */
@keyframes zoomOut {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1.0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

.animate-up,
.fade-in,
.fade-in-left {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.animate-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.visible {
    opacity: 1;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 900px) {
    #hero .hero-content h1 {
        font-size: 3rem;
    }

    .about-grid,
    .contact-wrapper,
    .biz-detail-grid {
        grid-template-columns: 1fr;
    }

    .biz-detail-grid.reverse {
        direction: ltr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        margin-left: 0;
    }

    .timeline-item:nth-child(even) {
        margin-left: 0;
    }

    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: 14px;
    }

    .timeline-item .year,
    .timeline-item:nth-child(even) .year {
        position: relative;
        left: auto;
        right: auto;
        top: 0;
        margin-bottom: 5px;
        text-align: left;
    }

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

    .process-steps {
        flex-direction: column;
    }

    .arrow {
        transform: rotate(90deg);
        padding: 20px 0;
    }
}

@media (max-width: 600px) {
    #main-nav {
        display: none;
    }

    /* Simplified mobile menu for now */
    .mobile-menu-btn {
        display: block;
    }

    #hero .hero-content h1 {
        font-size: 2.2rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .sub-header {
        height: 300px;
    }

    .sub-header h1 {
        font-size: 2.2rem;
    }
}