/* =================================== */
/* 🧩 COMPONENT STYLES (Mobile/Desktop) */
/* =================================== */

/* =================================== */
/* 🖥️📱 RESPONSIVE VISIBILITY CONTROL */
/* =================================== */

/* 데스크탑 컴포넌트 기본 표시 (768px 이상) */
.d-header,
.d-navbar,
.d-footer {
    display: block;
}

/* 모바일 컴포넌트 기본 숨김 */
.m-header,
.m-navbar,
.m-footer {
    display: none;
}

/* 모바일 미디어쿼리 (767px 이하) */
@media (max-width: 767px) {
    /* 데스크탑 숨김 */
    .d-header,
    .d-navbar,
    .d-footer {
        display: none !important;
    }
    
    /* 모바일 표시 */
    .m-header,
    .m-navbar,
    .m-footer {
        display: block !important;
    }
    
    /* 기존 네비게이션바도 숨김 */
    .navbar {
        display: none !important;
    }
    
    /* 기존 푸터도 숨김 */
    .footer {
        display: none !important;
    }
}

/* =================================== */
/* 🖥️ DESKTOP NAVIGATION STYLES */
/* =================================== */

.d-navbar {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(18, 1, 1, 0.05);
    height: 7.4vh;
    min-height: 54px;
    max-height: 84px;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.d-navbar-container {
    position: relative;  /* ✅ absolute 자식 요소들의 올바른 배치를 위한 기준점 */
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    height: 100%;
}

/* 데스크탑 로고 */
.d-navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 40px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.d-navbar-logo-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(0.8);
}

/* 스크롤 시 로고 숨김 */
.d-navbar.scrolled .d-navbar-logo {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(-20px);
}

/* 데스크탑 메뉴 */
.d-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 16px;
    gap: 88px;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.d-nav-item {
    position: relative;
    text-align: center;
}

/* 각 메뉴별 고정 너비 설정 */
.d-nav-item:nth-child(1) { /* HOME */
    width: 85px;
}

.d-nav-item:nth-child(2) { /* PRODUCT */
    width: 119px;
}

.d-nav-item:nth-child(3) { /* MEMBERS */
    width: 120px;
}

.d-nav-item:nth-child(4) { /* HISTORY */
    width: 108px;
}

.d-nav-link {
    color: #888888;
    text-decoration: none;
    padding: 5px 2px;
    border-radius: 0px;
    transition: all 0.3s ease;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -2.5%;
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.d-nav-link:hover {
    color: #ddd;
    border-radius: 10px;
    background-color: rgba(221, 221, 221, 0.05);
}

.d-nav-link.active {
    color: #ddd;
}

.d-nav-link.active::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    height: 1.5px;
    background-color: #888888;
}

/* 각 메뉴별 선 길이 설정 */
.d-nav-item:nth-child(1) .d-nav-link.active::after { /* HOME */
    width: 73px;
}

.d-nav-item:nth-child(2) .d-nav-link.active::after { /* PRODUCT */
    width: 107px;
}

.d-nav-item:nth-child(3) .d-nav-link.active::after { /* MEMBERS */
    width: 108px;
}

.d-nav-item:nth-child(4) .d-nav-link.active::after { /* HISTORY */
    width: 96px;
}

/* 데스크탑 CTA 버튼 */
.d-navbar-actions {
    position: fixed;      /* 전체 화면 기준 */
    right: 244px;         /* 전체 화면 우측에서 244px */
    top: 0;
    height: 7.4vh;        /* navbar와 동일한 높이 */
    min-height: 54px;
    max-height: 84px;
    display: flex;
    align-items: center;  /* 세로 중앙 정렬 */
    z-index: 1001;        /* navbar보다 위에 */
}

.d-contact-button {
    background-color: white;
    color: #000;
    border-radius: 12px;
    padding: 12px 24px;
    width: 160px;
    height: 50px;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -2.5%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.d-contact-button:hover {
    background-color: #f8f9fa;
    color: #FF2B00;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 데스크탑 드롭다운 메뉴 (1620px 미만용) */
.d-nav-dropdown {
    position: relative;
    display: none;
}

/* 1620px 미만에서 드롭다운 표시, 일반 메뉴만 숨김 */
@media (max-width: 1619px) and (min-width: 768px) {
    /* 일반 메뉴 숨김 */
    .d-nav-menu {
        display: none !important;
    }
    
    /* Contact Us 버튼 위치: 1620px 고정 + 최소 우측 44px 유지 */
    .d-navbar-actions {
        display: flex !important;
        left: auto;
        right: max(44px, calc(100vw - 1376px));  /* 넓을 때: 1620px 위치, 좁을 때: 우측 44px */
    }
    
    /* 드롭다운 표시 및 중앙 정렬 */
    .d-nav-dropdown {
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    /* 로고 유지 */
    .d-navbar-logo {
        display: flex;
        opacity: 1;
        transform: translateY(-50%) scale(0.85);
    }
}

.d-dropdown-toggle {
    background: none;
    border: none;
    color: #dddddd;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -2.5%;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Lucide 아이콘 스타일 */
.d-dropdown-arrow {
    width: 20px !important;
    height: 20px !important;
    display: inline-block !important;
    vertical-align: middle;
    transition: transform 0.3s ease;
    color: #dddddd !important;  /* 밝은 회색으로 명시적 지정 */
    stroke: #dddddd !important;
}

/* SVG 내부 요소에도 색상 적용 */
.d-dropdown-arrow svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    stroke: #dddddd !important;
    fill: none !important;
}

.d-dropdown-toggle.active .d-dropdown-arrow {
    transform: rotate(180deg);
    color: #ffffff !important;  /* 활성 시 흰색 */
    stroke: #ffffff !important;
}

.d-dropdown-toggle.active .d-dropdown-arrow svg {
    stroke: #ffffff !important;
}

.d-dropdown-toggle:hover {
    background-color: rgba(136, 136, 136, 0.05);
}

.d-dropdown-toggle.active {
    color: #ddd;
    font-weight: 500;
}

.d-dropdown-toggle.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    width: calc(100% - 20px);
    background-color: #888888;
    opacity: 0.8;
}

.d-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 1, 1, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
}

.d-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.d-dropdown-item {
    display: block;
    color: #888888;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -2.5%;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(136, 136, 136, 0.1);
    text-align: center;
}

.d-dropdown-item:last-child {
    border-bottom: none;
}

.d-dropdown-item:hover {
    background-color: rgba(136, 136, 136, 0.1);
    color: #fff;
}

.d-dropdown-item.active {
    font-weight: 700;
    color: #fff;
}

/* =================================== */
/* 📱 MOBILE NAVIGATION STYLES */
/* =================================== */

.m-navbar {
    background: rgba(18, 1, 1, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 70px;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.m-navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 100%;
}

/* 모바일 메뉴 버튼 (햄버거) */
.m-menu-button {
    background: rgba(255, 255, 255, 0.1); /* 약간의 배경색 추가 */
    border: 1px solid rgba(255, 255, 255, 0.2); /* 테두리 추가 */
    border-radius: 6px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1002;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.m-hamburger-line {
    width: 24px;
    height: 3px;
    background: #ffffff; /* 흰색으로 변경 */
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* 그림자 추가로 더 뚜렷하게 */
}

.m-menu-button.active .m-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: white;
}

.m-menu-button.active .m-hamburger-line:nth-child(2) {
    opacity: 0;
}

.m-menu-button.active .m-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: white;
}

/* 메뉴가 열렸을 때 햄버거 버튼 숨김 - body 클래스 방식 */
body.mobile-menu-open .m-menu-button {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 모바일 로고 */
.m-navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.m-navbar-logo-img {
    height: 35px;
    width: auto;
}

/* 모바일 액션 버튼들 - 검색 버튼 제거됨 */
.m-navbar-actions {
    display: none; /* 검색 버튼 컨테이너 숨김 */
}

.m-search-button {
    display: none; /* 검색 버튼 완전 숨김 */
}

/* 🔥 모바일 슬라이드 메뉴 (오른쪽에서 절반 크기) */
.m-fullscreen-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 60vw; /* 화면의 60%만 차지 */
    max-width: 300px; /* 최대 300px */
    height: 100vh;
    background: rgba(18, 1, 1, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1001;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%); /* 오른쪽에서 슬라이드 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.m-fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.m-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 40vw; /* 나머지 화면 영역 */
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* 메뉴 활성화 시 오버레이 표시 */
.m-fullscreen-menu.active .m-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.m-menu-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 80px 20px 20px 20px; /* 상단 여백 추가 */
    box-sizing: border-box;
    overflow-y: auto;
}

/* 메뉴 헤더 */
.m-menu-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* 닫기 버튼만 오른쪽에 */
    padding: 15px 20px;
    height: 60px;
    background: transparent;
}

.m-menu-logo {
    display: none; /* 로고 숨김 */
}

.m-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: transform 0.3s ease;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-menu-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.1);
}

/* 메뉴 리스트 */
.m-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 400px;
}

.m-menu-item {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

.m-menu-item:nth-child(1) { animation-delay: 0.1s; }
.m-menu-item:nth-child(2) { animation-delay: 0.2s; }
.m-menu-item:nth-child(3) { animation-delay: 0.3s; }
.m-menu-item:nth-child(4) { animation-delay: 0.4s; }
.m-menu-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.m-menu-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 16px 20px;
    background: transparent;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    text-align: left;
}

.m-menu-link:hover,
.m-menu-link:active {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.m-menu-link-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.m-menu-icon {
    font-size: 1.2rem;
    width: 20px;
}

.m-menu-text {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.m-menu-arrow {
    display: none; /* 화살표 숨김 */
}

.m-menu-link:hover .m-menu-arrow {
    transform: translateX(5px);
    opacity: 1;
}

.m-menu-desc {
    display: none; /* 설명 텍스트 숨김 */
}

/* 특별한 Contact 아이템 */
.m-contact-item {
    margin-top: 1.5rem;
}

.m-contact-link {
    background: linear-gradient(135deg, #FF2B00, #FF6B4A);
    border: none;
}

.m-contact-link:hover {
    background: linear-gradient(135deg, #E02500, #FF5530);
    box-shadow: 0 12px 30px rgba(255, 43, 0, 0.3);
}

/* 메뉴 푸터 - 숨김 */
.m-menu-footer {
    display: none;
}

.m-contact-info {
    margin-bottom: 1rem;
}

.m-contact-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.m-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
}

/* =================================== */
/* 🖥️ DESKTOP FOOTER */
/* =================================== */

.d-footer {
    background-color: #120101;
    padding: 60px 0 20px 0;
    margin-top: 100px;
    width: 100%;
}

.d-footer-container {
    width: 100%;
    margin: 0;
    padding: 0 143px;
    box-sizing: border-box;
}

.d-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 88px;
}

.d-footer-company {
    flex: 1;
    min-width: 300px;
}

.d-footer-logo {
    font-size: 24px;
    color: #8597ab;
    margin-bottom: 20px;
    display: block;
    text-decoration: none;
}

.d-footer-info {
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

.d-footer-info p {
    margin: 5px 0;
}

.d-footer-links {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.d-footer-column {
    min-width: 120px;
}

.d-footer-column h4 {
    color: #8597ab;
    margin-bottom: 15px;
    font-size: 16px;
}

.d-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.d-footer-column li {
    margin-bottom: 8px;
}

.d-footer-column a {
    color: #777;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.d-footer-column a:hover {
    color: #8597ab;
}

.d-footer-bottom {
    border-top: 1px solid #818c98;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 0;
    text-align: right;
}

.d-footer-copyright {
    color: #777;
    font-size: 12px;
}

/* 📱 MOBILE FOOTER */
.m-footer {
    background: #120101;
    color: white;
    padding: 2rem 0 1rem;
}

.m-footer-container {
    padding: 0 1.5rem;
}

.m-footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.m-footer-company {
    text-align: left;
}

.m-footer-logo {
    font-size: 24px;
    color: #8597ab;
    margin-bottom: 16px;
    display: block;
    text-decoration: none;
}

.m-footer-info {
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

.m-footer-info p {
    margin: 2px 0;
}

.m-footer-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.m-footer-column {
    flex: 1;
}

.m-footer-column h4 {
    color: #8597ab;
    margin-bottom: 10px;
    font-size: 16px;
}

.m-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.m-footer-column li {
    margin-bottom: 2px;
}

.m-footer-column a {
    color: #777;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.m-footer-column a:hover {
    color: #8597ab;
}

.m-footer-bottom {
    border-top: 1px solid #818c98;
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
}

.m-footer-copyright {
    color: #777;
    font-size: 12px;
}

/* =================================== */
/* 🔧 UTILITY COMPONENTS */
/* =================================== */

/* 스크롤 투 탑 버튼 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background-color: rgba(136, 136, 136, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    transform: scale(0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.footer-mode {
    background-color: rgba(197, 197, 197, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.footer-mode::before {
    color: #333;
}

.scroll-to-top::before {
    content: '🡱';
    font-size: 24px;
    color: #c5c5c5;
    font-weight: bold;
    line-height: 1;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-to-top:hover {
    transform: scale(1.05);
    background-color: rgba(136, 136, 136, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* 실시간 문의 버튼 - 책갈피 스타일 */
.live-chat-btn {
    position: fixed;
    top: 45%;
    right: 0;
    transform: translateY(-50%);
    background-color: rgba(118, 118, 118, 0.5);
    color: white;
    border: none;
    border-radius: 8px 0 0 8px;
    padding: 20px 12px;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    min-width: 60px;
    writing-mode: horizontal-tb;
}

.live-chat-btn::before {
    content: '💬';
    font-size: 18px;
}

.live-chat-btn:hover {
    transform: translateY(-50%) translateX(-5px);
    background-color: rgba(70, 70, 70, 0.9);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.4);
}

.live-chat-btn.footer-mode {
    background-color: rgba(197, 197, 197, 0.9);
    color: #333;
    backdrop-filter: blur(8px);
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.live-chat-btn.footer-mode:hover {
    background-color: rgba(150, 150, 150, 0.95);
    transform: translateY(-50%) translateX(-5px);
}

/* =================================== */
/* 🔧 LEGACY STYLES (기존 코드와의 호환성) */
/* =================================== */

/* 기존 네비게이션 바 (데스크탑에서만 표시) */
.navbar {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(18, 1, 1, 0.05);
    height: 7.4vh;
    min-height: 54px;
    max-height: 84px;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =================================== */
/* 📱 MOBILE FLOATING CONTACT BUTTON */
/* =================================== */

/* 기본 숨김 (데스크탑) */
.m-floating-contact-btn {
    display: none;
}

/* 모바일에서만 표시 (767px 이하) */
@media (max-width: 767px) {
    .m-floating-contact-btn {
        position: fixed;
        bottom: 30px;
        right: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #FF2B00, #FF6B4A);
        color: white;
        text-decoration: none;
        border-radius: 30px;
        padding: 16px 24px;
        box-shadow: 0 4px 20px rgba(255, 43, 0, 0.4);
        z-index: 999;
        transition: all 0.3s ease;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .m-floating-contact-btn:hover,
    .m-floating-contact-btn:active {
        background: linear-gradient(135deg, #E02500, #FF5530);
        box-shadow: 0 6px 24px rgba(255, 43, 0, 0.5);
        transform: translateY(-2px);
    }
    
    /* 텍스트 기본 표시 */
    .m-floating-btn-text {
        display: inline-block;
        white-space: nowrap;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    /* 아이콘 기본 숨김 */
    .m-floating-btn-icon {
        display: none;
        width: 24px !important;
        height: 24px !important;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    /* 스크롤 시 - 원형 버튼으로 변경 */
    .m-floating-contact-btn.scrolled {
        padding: 14px;
        border-radius: 50%;
        width: 52px;
        height: 52px;
    }
    
    /* 스크롤 시 - 텍스트 숨김 */
    .m-floating-contact-btn.scrolled .m-floating-btn-text {
        display: none;
    }
    
    /* 스크롤 시 - 아이콘 표시 */
    .m-floating-contact-btn.scrolled .m-floating-btn-icon {
        display: inline-block;
    }
}

/* contact-us.html 페이지에서 플로팅 버튼 숨김 */
body[data-page="contact"] .m-floating-contact-btn {
    display: none !important;
}

/* =================================== */
/* 🚧 COMING SOON MODAL STYLES */
/* =================================== */

/* 모달 오버레이 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 모달 컨테이너 공통 */
.modal-container {
    position: relative;
    animation: slideUp 0.4s ease;
}

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

/* 데스크탑 모달 */
.d-modal-container {
    display: block;
}

.m-modal-container {
    display: none;
}

/* 모달 콘텐츠 공통 */
.modal-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 닫기 버튼 */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333333;
}

.modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.modal-close i {
    width: 24px;
    height: 24px;
}

/* 모달 아이콘 */
.modal-icon-wrapper {
    margin-bottom: 30px;
}

.modal-icon-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(102, 126, 234, 0);
    }
}

.modal-icon {
    width: 50px;
    height: 50px;
    color: #ffffff;
    stroke-width: 2;
}

/* 모달 타이틀 */
.modal-title {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 16px;
}

/* 모달 메시지 */
.modal-message {
    font-size: 1.1rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* 타임라인 */
.modal-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 30px;
}

.timeline-icon {
    width: 20px;
    height: 20px;
    color: #667eea;
}

.timeline-text {
    font-size: 0.95rem;
    color: #333333;
}

/* 모달 액션 버튼 */
.modal-actions {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.modal-btn i {
    width: 20px;
    height: 20px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.modal-btn-secondary {
    background: #f5f5f5;
    color: #333333;
}

.modal-btn-secondary:hover {
    background: #e0e0e0;
}

/* =================================== */
/* 📱 MOBILE RESPONSIVE (767px 이하) */
/* =================================== */

@media (max-width: 767px) {
    /* 데스크탑 모달 숨김, 모바일 모달 표시 */
    .d-modal-container {
        display: none;
    }
    
    .m-modal-container {
        display: block;
    }
    
    /* 모바일 모달 콘텐츠 */
    .m-modal-content {
        padding: 40px 24px;
        border-radius: 16px;
        max-width: 100%;
    }
    
    /* 모바일 닫기 버튼 */
    .m-modal-content .modal-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }
    
    .m-modal-content .modal-close i {
        width: 20px;
        height: 20px;
    }
    
    /* 모바일 아이콘 */
    .m-modal-content .modal-icon-circle {
        width: 80px;
        height: 80px;
    }
    
    .m-modal-content .modal-icon {
        width: 40px;
        height: 40px;
    }
    
    /* 모바일 타이틀 */
    .m-modal-content .modal-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    /* 모바일 메시지 */
    .m-modal-content .modal-message {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    
    /* 모바일 타임라인 */
    .m-modal-content .modal-timeline {
        padding: 12px 20px;
        margin-bottom: 24px;
    }
    
    .m-modal-content .timeline-text {
        font-size: 0.85rem;
    }
    
    /* 모바일 버튼 */
    .m-modal-content .modal-btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
    
    .m-modal-content .modal-btn i {
        width: 18px;
        height: 18px;
    }
}
