/* style.css - WinWin Apparel B2B Homepage */

:root {
    --primary: #1E3A8A; /* Trustworthy deep blue */
    --primary-light: #3B82F6;
    --text-dark: #0F172A;
    --text-gray: #475569;
    --text-light: #F8FAFC;
    --bg-main: #FFFFFF;
    --bg-alt: #F1F5F9;
    --border-color: #E2E8F0;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

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

ul {
    list-style: none;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Typography & Utilities */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-light);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    position: relative;
    overflow: hidden;
}

.primary-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.primary-btn:hover::after {
    left: 100%;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(11, 18, 32, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* New Logo System */
/* New Logo System - Enhanced 3D */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    perspective: 1000px;
}

.logo-3d-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    z-index: 10;
}

.logo-symbol {
    position: relative;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    flex-shrink: 0;
    transform: translateZ(20px); /* Lift from surface */
}

.symbol-inner {
    position: relative;
    width: 22px;
    height: 22px;
}

.bar-v {
    position: absolute;
    left: 0;
    top: 0;
    width: 18%;
    height: 100%;
    background: white;
    border-radius: 100px;
}

.bar-h {
    position: absolute;
    left: 30%;
    top: 0;
    width: 70%;
    height: 18%;
    background: white;
    border-radius: 100px;
}

.bar-accent {
    position: absolute;
    right: 0;
    top: 0;
    width: 18%;
    height: 82%;
    background: linear-gradient(to bottom, #93C5FD, #FFFFFF);
    border-radius: 100px;
    transition: height 0.35s ease, opacity 0.35s ease;
}

.bar-bottom {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 58%;
    height: 18%;
    background: white;
    border-radius: 100px;
    transition: width 0.35s ease;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    transform: translateZ(10px);
}

.logo-text .brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.15em;
    line-height: 1;
    transition: color 0.3s;
}

.logo-text .sub-text {
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    transition: color 0.3s;
}

/* Shine Effect */
.logo-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: skewX(-20deg);
    transition: 0.7s;
    pointer-events: none;
}

.logo-container:hover .logo-shine {
    left: 150%;
}

/* Glow Background */
.logo-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

/* Logo Hover Effect */
.logo-container:hover .logo-glow-bg {
    opacity: 1;
}

.logo-container:hover .logo-3d-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.logo-container:hover .bar-accent {
    height: 100%;
}

.logo-container:hover .bar-bottom {
    width: 70%;
}

.navbar.scrolled .logo-text .brand-name {
    color: #FFFFFF; /* Keep white for premium dark navbar */
}

.navbar.scrolled .logo-text .sub-text {
    color: rgba(255, 255, 255, 0.6);
}

/* Scrolled Navbar adjustment */
.navbar.scrolled .logo-3d-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}


.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-light);
}

.navbar.scrolled .nav-links a {
    color: var(--text-dark);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary-light);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05); /* Pre-scale for subtle parallax if wanted */
    animation: zoomOut 20s infinite alternate linear;
}

@keyframes zoomOut {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 15, 30, 0.85) 0%, rgba(30, 58, 138, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
    animation: contentUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes contentUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    word-break: keep-all; /* 단어 단위로 줄바꿈 되도록 설정 */
    line-height: 1.4;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 300;
    word-break: keep-all; /* 단어 단위로 줄바꿈 되도록 설정 */
}

.hero-btns {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

.hero-btns .btn {
    padding: 0.9rem 2.2rem;
    border-radius: 50px; /* 둥근 캡슐형 모서리 */
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3); /* 옅은 테두리 */
}

.hero-btns .btn.primary {
    background: #FFFFFF;
    color: #1E3A8A;
    border-color: #FFFFFF;
}

.hero-btns .btn.primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-btns .btn.outline {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    backdrop-filter: blur(5px);
}

.hero-btns .btn.outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

/* Features Section (About) */
section {
    padding: 6rem 5%;
}

.features {
    background-color: var(--bg-alt);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-alt);
    transform: skewY(-2deg);
    z-index: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: 14px;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* Products Section */
.products {
    background-color: var(--bg-main);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.product-item {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--border-color);
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.product-img {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.product-item:hover .product-img img {
    transform: scale(1.08);
}

.product-info {
    padding: 2.5rem;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.product-info p {
    color: var(--text-gray);
}

/* Process Section */
.process {
    background-color: #F8FAFC; /* 연한 블루/그레이 배경 (더 밝고 깔끔하게) */
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: #CBD5E1; /* 연한 회파란색 실선으로 뚜렷하게 변경 */
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 50%;
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
}

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

.step {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--primary); /* 다크 블루 */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: 0 0 0 8px #F8FAFC; /* 배경과 동일한 색으로 테두리를 줘서 선과 분리 */
    transition: transform 0.3s ease, background 0.3s ease;
}

.timeline-item:hover .step {
    background: var(--primary-light);
    transform: translate(-50%, -50%) scale(1.05); /* 약간만 확대 */
}

/* Card Design */
.timeline-card {
    background: white;
    padding: 2.2rem 2.8rem;
    border-radius: 12px;
    width: 85%;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 좌우 간격 세부 조정 */
.timeline-item:nth-child(odd) .timeline-card {
    margin-right: 3.5rem; 
}

.timeline-item:nth-child(even) .timeline-card {
    margin-left: 3.5rem;
}

.timeline-item:hover .timeline-card {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.08);
}

.timeline-card h4 {
    font-size: 1.3rem;
    color: #111827;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.timeline-card p {
    color: #4B5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
}


/* Contact Section */
.contact {
    background: url('images/hero.png') center/cover fixed;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85); /* Dark overlay */
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 4rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    color: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.contact-card h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-card > p {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form select option {
    background: var(--text-dark);
    color: white;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.contact-form .submit-btn {
    width: 60%;
    margin: 1.5rem auto 0;
    display: block;
}

.block {
    width: 100%;
    display: block;
}

/* Contact Methods Container */
.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }
}

/* WeChat Info Box */
.wechat-info {
    background: rgba(30, 58, 138, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.wechat-info:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(96, 165, 250, 0.6);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.wechat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wechat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-text-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.wechat-info strong {
    color: white;
    display: block;
    font-size: 1.1rem;
    line-height: 1.4;
}

.wechat-id {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Kakao Info Box */
.kakao-info {
    background: rgba(250, 225, 0, 0.1);
    border: 1px solid rgba(250, 225, 0, 0.3);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.kakao-info:hover {
    background: rgba(250, 225, 0, 0.2);
    border-color: rgba(250, 225, 0, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(250, 225, 0, 0.15);
}

.kakao-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kakao-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kakao-info strong {
    color: white;
    display: block;
    font-size: 1.1rem;
    line-height: 1.4;
}

.kakao-id {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-gray);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text-dark);
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.4rem;
}

.hero-subtext {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 20px;
    letter-spacing: -0.02em;
    font-weight: 400;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 10px 0;
    font-family: 'Pretendard', sans-serif;
    letter-spacing: -0.01em;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.click-hint {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
    transition: transform 0.3s ease;
}

.product-item:hover .click-hint {
    transform: translateX(5px);
}

.qr-container {
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid var(--border-color);
}

.qr-container img {
    width: 200px;
    height: 200px;
    display: block;
    object-fit: contain;
}

.scan-guide {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.guide-title {
    display: inline-block;
    margin-bottom: 12px;
}

.highlight-badge {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: inline-block;
}

.guide-text-box {
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: 12px;
    border: 1px dashed rgba(59, 130, 246, 0.4);
    margin-bottom: 0.5rem;
}

.guide-text {
    font-size: 0.95rem;
    word-break: keep-all; 
    color: var(--text-dark);
    display: flex;
    flex-wrap: wrap; /* 스크린 작아질 때 자연스럽게 줄바꿈 */
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.5;
}

.guide-text .arrow {
    color: var(--primary-light);
    font-weight: 800;
    font-size: 1.1rem;
    opacity: 0.7;
}

.scan-guide .divider {
    margin: 1.2rem 0;
    position: relative;
    color: #94A3B8;
    font-size: 0.85rem;
}

.scan-guide .divider::before,
.scan-guide .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

.scan-guide .divider::before { left: 0; }
.scan-guide .divider::after { right: 0; }

.id-copy-box {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.id-copy-box span {
    color: var(--text-dark);
}

.small-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Product Detail Modal Specific Styles */
.product-detail-modal {
    max-width: 600px; /* 기존 위챗보다 너비를 넓게 */
    width: 95%;
}

.product-detail-modal .modal-desc {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.sample-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 10px;
}

.sample-img-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 160px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
}

.sample-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    image-rendering: -webkit-optimize-contrast; /* 썸네일 선명도 강화 */
}

/* 3-column scrolling gallery for lots of images (e.g Knitwear 36 grid) */
.knit-gallery {
    grid-template-columns: repeat(3, 1fr) !important;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 10px;
    gap: 10px !important;
}

.knit-gallery::-webkit-scrollbar {
    width: 6px;
}

.knit-gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.knit-gallery::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.knit-gallery .sample-img-box {
    height: 180px;
}

/* Image Viewer Enhancements */
.viewer-content {
    background: transparent !important;
    box-shadow: none !important;
    max-width: 90vw !important;
    padding: 0 !important;
}

.viewer-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.viewer-image-container img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    object-fit: contain;
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.sample-img-box:hover img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

.sample-img-box::before {
    content: '🔍 클릭하여 확대';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: 0.3s;
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
}

.sample-img-box:hover::before {
    opacity: 1;
}

/* Footer */
footer {
    background-color: #0B1120;
    color: white;
    padding: 4rem 5% 2rem;
}

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

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.12em;
    color: white;
}

.footer-info {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    
    .timeline::before { left: 40px; }
    .timeline-item { justify-content: flex-start; padding-right: 0; padding-left: 90px; }
    .timeline-item:nth-child(even) { padding-left: 90px; }
    /* 모바일에서 카드 여백 초기화 및 넓이 확장 */
    .timeline-item:nth-child(odd) .timeline-card,
    .timeline-item:nth-child(even) .timeline-card { margin-left: 0; margin-right: 0; width: 100%; }
    .step { left: 40px; }
    .timeline-item h4 { width: 100%; margin: 0 !important; }
    
    .product-grid { grid-template-columns: 1fr; }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001; /* Above mobile menu */
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.navbar.scrolled .hamburger .bar {
    background-color: var(--text-dark);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--glass-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s ease;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .nav-links.active { left: 0; }
    
    .nav-links a {
        color: var(--text-dark) !important;
        font-size: 1.5rem;
        font-weight: 600;
        margin: 1.5rem 0;
    }
    
    .hamburger.active .bar {
        background-color: var(--text-dark) !important;
    }

    .contact-card { padding: 2rem; }
}
