/* 웹 폰트 불러오기 (Pretendard) */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* =========================================
   0. 기본 초기화 (Reset & Base)
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

body {
    background-color: #0a1128;
    color: #ffffff;
    overflow-x: hidden;
}

/* =========================================
   1. 헤더 (Header - Sticky Light Theme)
========================================= */
header {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 12px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    z-index: 1000;
}

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

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    mix-blend-mode: multiply;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333333;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #0084ff;
}

/* =========================================
   2. 메인 히어로 섹션 (VR Background)
========================================= */
.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-image: url('vr_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 17, 40, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 20px;
    word-break: keep-all;
}

.hero h1 span {
    color: #00bfff;
}

.hero p {
    font-size: 20px;
    line-height: 1.7;
    color: #d1dfed;
    margin-bottom: 40px;
    word-break: keep-all;
}

/* =========================================
   3. 공통 버튼 (Buttons & Multi-line)
========================================= */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: #0084ff;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.4);
}

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

.btn.secondary {
    background-color: transparent;
    color: #00bfff;
    border: 2px solid #00bfff;
}

.btn.secondary:hover {
    background-color: rgba(0, 191, 255, 0.1);
    transform: translateY(-2px);
}

.multi-line-btn,
.espressif-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    gap: 4px;
}

.btn-main-text {
    font-size: 16px;
    font-weight: 700;
}

.btn-sub-text {
    font-size: 12.5px;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: -0.3px;
}

.espressif-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.espressif-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
}

/* =========================================
   4. 서브 페이지 공통 레이아웃
========================================= */
.sub-page {
    background-color: #0a1128;
}

.sub-section-padding {
    padding: 70px 20px 100px;
    min-height: calc(100vh - 150px);
}

.section-title {
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
    text-align: center;
    padding: 0 10px;
}

.section-title h2 {
    font-size: 36px;
    color: #00bfff;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 20px;
    color: #d1dfed;
    line-height: 1.6;
    word-break: keep-all;
}

.section-title strong {
    color: #ffffff;
}

/* =========================================
   5. 보이스 솔루션 스펙 (Solution)
========================================= */
.solution-section {
    position: relative;
    padding: 70px 20px 100px;
    background-image: url('solution_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.solution-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 17, 40, 0.85);
    z-index: 1;
}

.solution-section .section-title,
.solution-section .spec-grid,
.solution-section .cta-buttons {
    position: relative;
    z-index: 2;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.spec-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 132, 255, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-10px);
    border-color: #0084ff;
    box-shadow: 0 10px 20px rgba(0, 132, 255, 0.1);
}

.spec-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.spec-card p {
    font-size: 17px;
    line-height: 1.7;
    color: #b0c4de;
    word-break: keep-all;
}

/* =========================================
   6. 제품 라인업 (Products)
========================================= */
.products-section {
    padding: 70px 20px 100px;
    background-color: #0a1128;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: linear-gradient(145deg, #111a3a, #0a1128);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #1a254c;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-content {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-content h3 {
    font-size: 26px;
    font-weight: 700;
    color: #00bfff;
    margin-bottom: 15px;
}

.product-content p {
    font-size: 18px;
    line-height: 1.7;
    color: #b0c4de;
    word-break: keep-all;
}

.product-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    padding-top: 30px;
}

.product-images img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 5px;
}

.product-images img:nth-child(1):nth-last-child(2),
.product-images img:nth-child(2):nth-last-child(1) {
    max-width: 48%;
}

.b2b-img {
    height: 160px !important;
    width: auto;
    object-fit: contain;
}

.product-images a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.product-images a:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* =========================================
   7. 회사 소개 (About Us, Team, Patents)
========================================= */
.about-section {
    position: relative;
    background-image: url('about_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 70px 20px 100px;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 17, 40, 0.82);
    z-index: 1;
}

.about-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
}

.about-text {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(145deg, #111a3a, #0a1128);
    border: 1px solid #1a254c;
    border-radius: 20px;
    box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.4);
    margin-bottom: 50px;
}

.about-text h3 {
    font-size: 28px;
    color: #00bfff;
    margin-bottom: 25px;
    font-weight: 700;
}

.about-text p {
    font-size: 20px;
    line-height: 1.8;
    color: #d1dfed;
    word-break: keep-all;
}

.team-section {
    margin-bottom: 50px;
    text-align: center;
}

.team-section h4 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.team-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0084ff;
    border-radius: 2px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 30px;
}

.team-card {
    background: rgba(0, 132, 255, 0.03);
    border: 1px solid rgba(0, 132, 255, 0.2);
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: #0084ff;
    background: rgba(0, 132, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 132, 255, 0.15);
}

.team-card h5 {
    font-size: 22px;
    font-weight: 700;
    color: #00bfff;
    margin-bottom: 15px;
}

.team-card p {
    font-size: 17px;
    color: #b0c4de;
    margin-bottom: 10px;
    line-height: 1.7;
    word-break: keep-all;
}

.patent-list {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px 40px;
    margin-bottom: 50px;
}

.patent-list h4 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 30px;
    text-align: center;
}

.patent-list ul {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.patent-list ul li {
    font-size: 17px;
    color: #e0e0e0;
    margin-bottom: 18px;
    position: relative;
    padding-left: 30px;
    line-height: 1.6;
    word-break: keep-all;
}

.patent-list ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00bfff;
    font-weight: bold;
    font-size: 18px;
}

/* =========================================
   8. 문의하기 (Contact Us)
========================================= */
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: linear-gradient(145deg, #111a3a, #0a1128);
    border: 1px solid #1a254c;
    border-radius: 20px;
    padding: 60px 50px;
    box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.4);
}

.contact-info h3 {
    color: #00bfff;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
}

.contact-info .info-desc {
    color: #b0c4de;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 40px;
    word-break: keep-all;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    margin-bottom: 25px;
    color: #e0e0e0;
    font-size: 18px;
    line-height: 1.6;
    word-break: keep-all;
}

.contact-info li strong {
    color: #0084ff;
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form-wrapper {
    width: 100%;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 132, 255, 0.2);
    border-radius: 8px;
    padding: 18px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #667699;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0084ff;
    background: rgba(0, 132, 255, 0.08);
    box-shadow: 0 0 10px rgba(0, 132, 255, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn {
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    padding: 16px 30px;
}

/* =========================================
   9. 꼬리말 (Footer - Light Theme)
========================================= */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 26px 20px;
    color: #666666;
    display: flex;
    justify-content: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.company-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #222222;
    font-size: 15px;
    font-weight: 700;
}

.company-info span {
    display: block;
}

footer p {
    color: #555555;
    font-size: 13px;
    font-weight: 600;
}

/* =========================================
   10. 모바일 반응형 (Responsive - 768px 이하)
========================================= */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 12px 20px;
        gap: 12px;
    }

    .logo-img {
        height: 44px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 14px;
    }

    .hero,
    .solution-section,
    .about-section {
        background-attachment: scroll;
    }

    .hero {
        min-height: calc(100vh - 105px);
        padding: 45px 20px;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.35;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.6;
        padding: 0 8px;
        margin-bottom: 30px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .sub-section-padding,
    .solution-section,
    .products-section,
    .about-section {
        padding: 50px 20px 70px;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .section-title p {
        font-size: 16px;
    }

    .about-text,
    .patent-list {
        padding: 35px 22px;
    }

    .about-text h3 {
        font-size: 22px;
    }

    .about-text p {
        font-size: 16px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 35px 22px;
        gap: 35px;
    }

    .contact-info h3 {
        font-size: 24px;
    }

    .contact-info li {
        font-size: 16px;
    }

    .company-info {
        font-size: 12px;
    }
}
