* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -.022em;
    color: #1d1d1f;
    background-color: #ffffff;
    padding-top: 44px;
}

header {
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: saturate(180%) blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    height: 44px;
    display: flex;
    align-items: center;
}

header h1 {
    font-size: 21px;
    margin: 0 auto;
    padding: 0 8px;
    color: #ffffff;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #f5f5f7;
    text-decoration: none;
    font-size: 12px;
    padding: 0 20px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

nav ul li a:hover {
    opacity: 1;
}

main {
    margin-top: 0;
    padding: 0;
}

/* 섹션 공통 스타일 */
section {
    width: 100%;
    min-height: 100vh;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 홈 섹션 스타일 */
#home {
    height: 100vh;
    background: linear-gradient(
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.2)
    ),
    url('https://images.unsplash.com/photo-1600210491892-03d54c0aaf87?w=1800') center/cover no-repeat fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 1;
}

#home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.5) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
}

#home h2, #home p, .cta-button {
    position: relative;
    z-index: 3;
}

#home h2 {
    font-size: 64px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease;
    background: linear-gradient(to right, #fff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#home p {
    font-size: 28px;
    margin-bottom: 50px;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.9));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 10px 0;
}

.cta-button {
    display: inline-block;
    padding: 24px 48px;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.95) 0%, 
        rgba(255,255,255,0.85) 50%,
        rgba(255,255,255,0.95) 100%);
    backdrop-filter: blur(10px);
    color: #000;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.2),
        0 0 0 1px rgba(255,255,255,0.15);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.cta-button::before {
    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;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.3),
        0 0 0 2px rgba(255,255,255,0.2);
    background: linear-gradient(135deg, 
        rgba(255,255,255,1) 0%, 
        rgba(255,255,255,0.9) 50%,
        rgba(255,255,255,1) 100%);
}

.cta-button:hover::before {
    left: 100%;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    #home h2 {
        font-size: 40px;
        margin-bottom: 20px;
    }

    #home p {
        font-size: 22px;
        margin-bottom: 35px;
    }

    .cta-button {
        padding: 20px 40px;
        font-size: 18px;
    }
}

/* 서비스 섹션 럭셔리 스타일 */
#services {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: #f5f5f7;
    padding: 120px 20px;
}

#services h2 {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 80px;
    color: #fff;
    position: relative;
}

#services h2:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0), #fff, rgba(255,255,255,0));
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 50px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

.before-after-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    user-select: none;
}

.image-compare {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.image-overlay img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 35px 25px;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.95) 100%);
    margin-top: -2px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.service-text {
    flex: 0 0 220px;
    padding-right: 30px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.service-item h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #00c3ff;
    letter-spacing: 0;
    text-transform: uppercase;
}

.service-item p {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
    line-height: 1.6;
}

.service-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.service-list-item {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    padding: 12px 18px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.service-list-item:before {
    content: '•';
    margin-right: 10px;
    color: #00c3ff;
    font-weight: bold;
}

.service-list-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateX(5px);
    border-color: rgba(255,255,255,0.2);
}

/* 슬라이더 스타일 개선 */
.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #fff;
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 2;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: ew-resize;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.before-label, .after-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    pointer-events: none;
}

.before-label {
    right: 10px;
}

.after-label {
    left: 10px;
}

@media (max-width: 768px) {
    #services {
        padding: 80px 20px;
    }

    #services h2 {
        font-size: 36px;
        margin-bottom: 50px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .before-after-container {
        height: 280px;
    }

    .service-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .service-text {
        flex: none;
        width: 100%;
        padding-right: 0;
        padding-bottom: 15px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .service-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .service-list-item {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* 포트폴리오 섹션 스타일 */
#portfolio {
    background-color: #000;
    color: #f5f5f7;
    padding-top: 60px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #1d1d1f;
    transition: transform 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    color: #fff;
    transform: translateY(100px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.portfolio-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.portfolio-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-item img {
        height: 300px;
    }
}

/* 견적문의 섹션 럭셔리 스타일 */
#estimate {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    color: #f5f5f7;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

#estimate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/diamond-upholstery.png');
    opacity: 0.03;
    pointer-events: none;
}

#estimate h2 {
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 15px;
    text-align: center;
    font-family: "Didot", serif;
    letter-spacing: 0.02em;
    color: #fff;
}

.estimate-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 1.6;
    text-transform: uppercase;
}

.estimate-form {
    max-width: 800px;
    margin: -40px auto 0 auto;
    padding: 50px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
}

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

.form-group label {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0;
    color: #fff;
    font-size: 15px;
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    letter-spacing: 0.02em;
}

.size-budget-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

/* 알림 설정 영역 스타일 개선 */
.notification-preferences {
    display: flex;
    gap: 30px;
    margin: 20px 0 40px;
}

.notification-preferences label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: 16px 25px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    border-radius: 4px;
}

.notification-preferences label:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.notification-preferences input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    background: transparent;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.notification-preferences input[type="checkbox"]:checked {
    background: #fff;
    border-color: #fff;
}

.notification-preferences input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 14px;
    font-weight: bold;
}

/* 견적문의 보내기 버튼 스타일 개선 */
.estimate-form button {
    width: 100%;
    padding: 20px;
    margin-top: 20px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.9) 100%);
    color: #000;
    border: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.estimate-form button::before {
    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;
}

.estimate-form button:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.estimate-form button:hover::before {
    left: 100%;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .notification-preferences {
        flex-direction: column;
        gap: 15px;
    }

    .notification-preferences label {
        padding: 14px 20px;
    }

    .estimate-form button {
        padding: 16px;
        font-size: 15px;
    }
}

/* 성공 메시지 스타일 */
.success-message {
    text-align: center;
    padding: 25px;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    margin-top: 30px;
    color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .estimate-form {
        padding: 20px;
    }
    
    .form-group input {
        height: 38px;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .form-group input::placeholder {
        font-size: 12px;
    }
    
    .estimate-form select {
        padding: 10px;
        font-size: 14px;
    }
    
    .notification-preferences {
        flex-direction: column;
    }
}

/* 성공 메시지 스타일 */
.success-message {
    text-align: center;
    padding: 30px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin-top: 30px;
    color: #fff;
}

.check-status-link {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.check-status-link:hover {
    background: rgba(255,255,255,0.2);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .estimate-form {
        padding: 30px;
    }

    .notification-preferences {
        flex-direction: column;
        gap: 10px;
    }
}

/* 연락처 섹션 스타일 */
#contact {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    color: #f5f5f7;
    padding: 100px 20px;
}

#contact h2 {
    text-align: center;
    color: #fff;
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -.003em;
    margin-bottom: 50px;
}

.contact-info {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: transparent;
    padding: 0;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* ✅ 여기 수정됨 */
    gap: 30px;
    padding: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px; /* ✅ 살짝 축소 (30px → 20px) */
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s ease;
}

.contact-item:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.contact-item i {
    font-size: 28px;
    color: #fff;
    width: 28px;
    text-align: center;
    opacity: 0.9;
}

.contact-text h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.contact-text p {
    margin: 0;
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    line-height: 1.5;
}

.contact-text .sub-text {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
}

/* 반응형 */
@media (max-width: 768px) {
    #contact {
        padding: 30px 20px;
    }

    #contact h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .contact-item {
        padding: 20px;
        flex-direction: row;
        align-items: center;
    }

    .contact-item i {
        font-size: 22px;
        margin-right: 10px;
    }

    .contact-text h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .contact-text p {
        font-size: 14px;
    }

    .contact-text .sub-text {
        font-size: 12px;
    }
}

/* 모바일 대응 */
@media (max-width: 768px) {
    #contact {
        padding: 30px 20px;
    }

    #contact h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .contact-item {
        padding: 25px;
    }
}

/* 견적확인 페이지 백화점 스타일 */
.estimate-check-container {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    color: #f5f5f7;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.estimate-check-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.03;
    pointer-events: none;
}

.estimate-check-container h2 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 15px;
    font-family: "Didot", serif;
}

.estimate-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* 견적확인 검색 폼 스타일 */
.search-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 40px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.search-form input {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 15px;
    color: #fff;
    transition: all 0.3s ease;
}

.search-form input::placeholder {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    letter-spacing: 0.02em;
}

.search-form input:focus {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.2);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.05);
}

.search-btn {
    width: 100%;
    height: 50px;
    background: rgba(255,255,255,0.9);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .search-form {
        padding: 25px;
        gap: 20px;
    }

    .search-form input,
    .search-btn {
        height: 45px;
        font-size: 14px;
    }
}

/* 결과 컨텐츠 스타일 */
.result-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
}

.status-badge {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.status-badge span {
    display: inline-block;
    padding: 8px 25px;
    background: #fff;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.estimate-details {
    padding: 40px;
}

.detail-row {
    margin-bottom: 30px;
}

.detail-row label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.detail-row span,
.detail-row .message-content {
    display: block;
    font-size: 15px;
    line-height: 1.6;
    color: #fff;
}

.message-content {
    background: rgba(255,255,255,0.03);
    padding: 25px;
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
    .estimate-check-container {
        padding: 100px 20px 40px;
    }

    .estimate-check-container h2 {
        font-size: 32px;
    }

    .search-form {
        padding: 30px 20px;
    }

    .estimate-details {
        padding: 30px 20px;
    }
}

/* 스크롤 동작 */
html {
    scroll-behavior: smooth;
}

/* 스크롤 시 섹션 전환 애니메이션 */
.scroll-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-section.visible {
    opacity: 1;
    transform: translateY(0);
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

.before-after-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    user-select: none;
}

.image-compare {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.image-overlay img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #fff;
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 2;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: ew-resize;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.before-label, .after-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    pointer-events: none;
}

.before-label {
    right: 10px;
}

.after-label {
    left: 10px;
}

/* 슬라이더 인터랙션을 위한 JavaScript 필요 */
.service-item:hover .image-overlay {
    transition: left 0.3s ease;
}

/* 관리자 로그인 스타일 */
.admin-login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 2rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 5px;
}

.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 관리자 대시보드 스타일 */
.admin-container {
    min-height: 100vh;
    background: #f5f5f5;
}

.admin-header {
    background: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header nav a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 3px;
}

.admin-header nav a.active {
    background: rgba(255,255,255,0.2);
}

.admin-main {
    padding: 2rem;
}

.estimate-list {
    background: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 모달 스타일 수정 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow-y: auto; /* 스크롤 허용 */
    padding: 20px;
    z-index: 1000;
}

.modal-content {
    background: white;
    margin: 20px auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 모달 닫기 버튼 개선 */
.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    width: 30px;
    height: 30px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #666;
    transition: all 0.3s ease;
}

.close:hover {
    background: #e9ecef;
    color: #333;
}

/* 상세 정보 레이아웃 개선 */
.estimate-detail {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
    margin: 1rem 0;
    background: #f8f9fa;
    border-radius: 5px;
}

.detail-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row label {
    font-weight: bold;
    color: #2c3e50;
}

.message-content {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 0.5rem;
}

/* 답변 작성 영역 개선 */
.estimate-actions {
    background: #fff;
    padding: 1.5rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.status-group select,
.reply-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.reply-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* 알림 설정 영역 */
.notification-group {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.notification-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
}

/* 버튼 그룹 */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    section {
        padding: 30px 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-list-item {
        flex: 1 1 100%;
    }

    .estimate-form {
        padding: 20px;
    }

    .modal-content {
        width: 95%;
        margin: 10px auto;
        padding: 1.5rem;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .button-group {
        flex-direction: column;
    }

    .estimate-detail {
        max-height: 50vh;
    }
}

/* 견적 필터 스타일 */
.estimate-filters select,
.estimate-filters input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* 견적 결과 페이지 스타일 */
.estimate-result-page {
    max-width: 800px;
    margin: 120px auto 2rem;
    padding: 0 1rem;
}

.estimate-result {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-form button {
    padding: 0.8rem 1.5rem;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.status-box {
    text-align: center;
    margin-bottom: 2rem;
}

.status-box .badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.result-content {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.admin-response {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin-top: 2rem;
}

.admin-response h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.no-result {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-top: 20px;
}

.no-result p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.new-estimate-btn {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255,255,255,0.9);
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.new-estimate-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.check-status-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
}

.check-status-link:hover {
    text-decoration: underline;
}

/* 토스트 메시지 스타일 개선 */
.toast-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
    white-space: pre-line;
    text-align: center;
    min-width: 300px;
}

.toast-message.success {
    background-color: #2ecc71;
    color: white;
}

.toast-message.warning {
    background-color: #f1c40f;
    color: #2c3e50;
}

.toast-message.error {
    background-color: #e74c3c;
    color: white;
}

/* 저장 버튼 비활성화 스타일 */
.primary-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.admin-link {
    display: inline-block;
    margin-left: 1rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
}

.admin-link:hover {
    color: white;
}

.login-help {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

.login-help p {
    margin: 0.5rem 0;
}

/* 알림 이력 스타일 */
.notification-history {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.notification-history h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.notification-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    padding: 0.8rem;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.notification-date {
    color: #666;
}

.notification-type {
    font-weight: bold;
}

.notification-status {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.notification-status h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.notification-date {
    color: #666;
    font-size: 0.9rem;
}

.notification-info {
    display: flex;
    gap: 1rem;
}

.notification-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

.notification-badge.success {
    background-color: #2ecc71;
    color: white;
}

.notification-badge.failed {
    background-color: #e74c3c;
    color: white;
}

.no-notifications {
    color: #666;
    text-align: center;
    padding: 1rem;
    font-style: italic;
}

/* 추가 문의 폼 스타일 */
.additional-inquiry {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inquiry-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
}

.inquiry-form .notification-preferences {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.inquiry-form .submit-btn {
    padding: 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.inquiry-form .submit-btn:hover {
    background-color: #2980b9;
}

/* 추가 문의 내역 스타일 개선 */
.additional-inquiries {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
}

.additional-inquiries h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.inquiry-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid #3498db;
}

.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.inquiry-date {
    color: #666;
    font-size: 0.9rem;
}

.inquiry-message {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    margin: 0.5rem 0;
    white-space: pre-line;
    line-height: 1.6;
}

.inquiry-response {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.inquiry-response strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.5rem;
}

.inquiry-response p {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    white-space: pre-line;
    line-height: 1.6;
}

.response-date {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: right;
}

.no-response {
    color: #666;
    font-style: italic;
    padding: 0.5rem;
}

/* 상태에 따른 테두리 색상 */
.inquiry-item[data-status="new"] {
    border-left-color: #e74c3c;
}

.inquiry-item[data-status="inProgress"] {
    border-left-color: #f1c40f;
}

.inquiry-item[data-status="completed"] {
    border-left-color: #2ecc71;
}

/* 포트폴리오 전후 비교 */
.portfolio-item {
    position: relative;
    overflow: hidden;
}

.portfolio-compare {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 5px;
}

.portfolio-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-after {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.portfolio-after img {
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    object-fit: cover;
}

.portfolio-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%);
    cursor: ew-resize;
}

.portfolio-slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* 스크롤 시 헤더 숨김 */
header.hide {
    transform: translateY(-100%);
}

/* 스크롤 시 헤더 표시 */
header.show {
    transform: translateY(0);
}

.estimate-form select {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.estimate-form select optgroup {
    background: #1a1a1a;
    color: #fff;
    font-weight: 600;
    padding: 10px;
}

.estimate-form select option {
    background: #2c2c2c;
    color: #fff;
    padding: 10px;
}

.estimate-form select:focus {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    outline: none;
} 
#recent-estimates {
    background: rgba(255,255,255,0.82);
    border-radius: 14px;
    box-shadow: 0 6px 28px rgba(80,90,170,0.10);
    padding: 22px 30px 16px 30px;
    margin: 30px auto 0 auto;
    max-width: 340px;
    min-width: 220px;
    font-size: 1.06rem;
    color: #232e73;
    position: relative;
}
#recent-estimates h4 {
    margin: 0 0 10px 0;
    font-size: 1.04em;
    color: #222e73;
    font-weight: 600;
    letter-spacing: 0.01em;
}
#recent-estimates ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
#recent-estimates li {
    margin-bottom: 6px;
    color: #323;
    font-size: 0.98em;
}
/* 눈/비 효과가 버튼 클릭을 막지 않도록 */
.snow-container,
.rain-container {
  pointer-events: none;
}
