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

:root {
    --primary-50: #e6f0ff;
    --primary-100: #cce1ff;
    --primary-500: #0069ff;
    --primary-600: #0054cc;
    --primary-700: #003f99;
    --secondary-500: #0ea5e9;
    --secondary-600: #0284c7;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden; /* 모바일 초기 가로 스크롤 방지 */
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: scroll; /* 세로 스크롤 활성화 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* 미디어 요소가 컨테이너 폭을 넘지 않도록 보장 */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* ===== Header / Navigation ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

#header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    font-weight: 600;
    color: var(--gray-700);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-600);
}

.nav-link.nav-cta {
    color: var(--primary-600);
    font-weight: 700;
}

.nav-link.nav-cta:hover {
    color: var(--primary-700);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-600);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--gray-900);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 105, 255, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-600);
    border: 2px solid var(--primary-600);
}

.btn-secondary:hover {
    background: var(--primary-50);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-50) 0%, white 50%, var(--secondary-50) 100%);
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.hero-circle-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-500);
    top: -200px;
    right: -200px;
    animation: float 6s ease-in-out infinite;
}

.hero-circle-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-500);
    bottom: -150px;
    left: -150px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem 0;
}

.hero-text {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--gray-600);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 6px;
    height: 6px;
    background: var(--gray-600);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

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

/* ===== Section Styles ===== */
section {
    padding: 5rem 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Business Section ===== */
.business-section {
    background: var(--gray-50);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.business-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.business-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.icon-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.icon-purple { background: linear-gradient(135deg, #a855f7, #9333ea); }
.icon-green { background: linear-gradient(135deg, #10b981, #059669); }
.icon-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }

.business-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.business-desc {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.business-features {
    list-style: none;
}

.business-features li {
    padding: 0.5rem 0;
    color: var(--gray-700);
    position: relative;
    padding-left: 1.5rem;
}

.business-features li::before {
    content: '•';
    color: var(--primary-500);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ===== Products Section ===== */
.products-section {
    background: white;
}

.product-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--gray-200);
}

.filter-btn.active {
    background: var(--primary-600);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 105, 255, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border: 2px solid var(--gray-100);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.product-card:hover {
    border-color: var(--primary-500);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.product-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-brand {
    color: var(--primary-600);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-desc {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.product-grades {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.grades-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grades-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.grade-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: white;
    border: 1px solid var(--primary-200);
    color: var(--primary-700);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.grade-tag:hover {
    background: var(--primary-100);
    border-color: var(--primary-500);
}

.product-applications {
    margin-top: auto;
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 10px;
}

.applications-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.app-item:hover {
    transform: translateY(-2px);
}

.app-image {
    width: 100%;
    height: 60px;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--gray-200);
}

.app-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.app-name {
    font-size: 0.7rem;
    color: var(--gray-700);
    font-weight: 600;
    line-height: 1.2;
}

.products-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* ===== About Section ===== */
.about-section {
    background: linear-gradient(135deg, var(--gray-50), white);
}

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

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

.text-primary {
    color: var(--primary-600);
}

.certifications {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.certifications h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.cert-item {
    font-size: 0.9rem;
    color: var(--gray-700);
}

.cert-item::before {
    content: '✓ ';
    color: #10b981;
}

.about-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.value-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.company-stats {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    border-radius: 25px;
    padding: 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    color: white;
}

.stat-box {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ===== Contact Section ===== */
.contact-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: stretch;
}

.contact-info-left {
    display: flex;
    flex-direction: column;
}

.contact-card-vertical {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 105, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item-vertical {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.info-item-vertical:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-content strong {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.info-content p {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.info-content a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    word-break: break-all;
}

.info-content a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.info-sub {
    font-size: 0.9rem;
    opacity: 0.85;
}

.contact-map-right {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.map-container {
    width: 100%;
    flex: 1;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--gray-100);
}

/* 지도 전용: 전역 iframe 높이 자동 규칙을 무시하고 컨테이너에 맞춤 */
.map-container iframe {
    width: 100%;
    height: 100% !important;
    display: block;
}

.map-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--gray-600);
    font-style: italic;
    text-align: center;
}

/* ===== Footer ===== */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 2fr; /* 마지막 컬럼(연락처) 너비 확장 */
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.footer-desc {
    color: #9ca3af;
    line-height: 1.6;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.7rem;
    font-size: 0.9rem; /* 폰트 크기 조정 */
    color: var(--gray-100);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9ca3af;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-text {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .company-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-container {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

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

    .hero-description {
        font-size: 1.1rem;
        display: none;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    /* 모바일에서 히어로 통계 폰트 크기만 축소 */
    .stat-value {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* 모바일에서 제품 그리드의 최소 폭으로 인한 가로 스크롤 방지 */
    .products-grid {
        grid-template-columns: 1fr;
    }

    /* 모바일에서 필터 버튼 글자 크기 증가 */
    .filter-btn {
        font-size: 1.00rem;
    }

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

    .company-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
        padding: 1.25rem;
        border-radius: 16px;
    }

    .stat-box {
        padding: 0.5rem 0;
    }

    .stat-number {
        font-size: 1.3rem;
        margin-bottom: 0.25rem;
    }

    .stat-text {
        font-size: 0.85rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .map-container {
        min-height: 350px;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
    }

    .info-item-vertical {
        gap: 0.75rem;
    }

    /* 모바일에서 푸터 '연락처' 이모지 숨김 (텍스트 인덴트 기법) */
    .footer-grid .footer-col:last-child .footer-links li {
        text-indent: -1.5em;
        padding-left: 1.5em;
    }
}

@media (max-width: 360px) {
    .stat-number {
        font-size: 1.2rem;
    }

    .stat-text {
        font-size: 0.8rem;
    }
}

/* ===== Animation Effects ===== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

