/*
 * 파일명: styles.css
 * 위치: /assets/css/styles.css
 * 기능: 웹웍스 메인 홈페이지 스타일 (컬러 테마 변경 및 애니메이션 추가)
 * 작성일: 2025-06-27
 * 수정일: 2025-06-27
 */

/* ===================================
 * CSS 변수 및 기본 설정
 * ===================================
 */

:root {
    /* 메인 컬러 시스템 - #4A7C59 기반 */
    --primary-color: #4A7C59;
    --primary-light: #5a8f6a;
    --primary-dark: #3a6248;
    --secondary-color: #6b9080;
    --accent-color: #a4c3b2;
    
    /* 텍스트 컬러 */
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    
    /* 배경 컬러 */
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-dark: #1a202c;
    --border-color: #e2e8f0;
    
    /* 그라데이션 */
    --gradient-primary: linear-gradient(135deg, #4A7C59 0%, #6b9080 100%);
    --gradient-secondary: linear-gradient(135deg, #a4c3b2 0%, #4A7C59 100%);
    --gradient-text: linear-gradient(135deg, #4A7C59, #6b9080);
    --gradient-hero: linear-gradient(135deg, rgba(74, 124, 89, 0.9) 0%, rgba(107, 144, 128, 0.9) 100%);
    
    /* 스페이싱 */
    --section-padding: 4rem;
    --container-padding: 1.5rem;
    
    /* 타이포그래피 */
    --font-family-primary: 'Noto Sans KR', sans-serif;
    --font-family-heading: 'Montserrat', sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
    
    /* 그림자 */
    --shadow-sm: 0 2px 4px rgba(74, 124, 89, 0.1);
    --shadow-md: 0 4px 8px rgba(74, 124, 89, 0.12), 0 2px 4px rgba(74, 124, 89, 0.08);
    --shadow-lg: 0 10px 25px rgba(74, 124, 89, 0.15), 0 5px 10px rgba(74, 124, 89, 0.05);
    --shadow-xl: 0 20px 50px rgba(74, 124, 89, 0.15), 0 10px 20px rgba(74, 124, 89, 0.08);
    
    /* 애니메이션 */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
}

/* 다크모드 변수 */
[data-theme="dark"] {
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #a0aec0;
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-dark: #0f1419;
    --border-color: #4a5568;
    
    /* 다크모드에서 그라데이션 조정 */
    --gradient-primary: linear-gradient(135deg, #5a8f6a 0%, #6b9080 100%);
    --gradient-hero: linear-gradient(135deg, rgba(90, 143, 106, 0.9) 0%, rgba(107, 144, 128, 0.9) 100%);
}

/* ===================================
 * 기본 스타일
 * ===================================
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: var(--transition-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 타이포그래피 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 섹션 공통 스타일 */
.section-padding {
    padding: var(--section-padding) 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
 * 네비게이션
 * ===================================
 */

.navbar {
    padding: 0.75rem 0;
    transition: var(--transition-base);
    background: transparent !important;
}

.navbar-scrolled {
    background: rgba(26, 32, 44, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

[data-theme="dark"] .navbar-scrolled {
    background: rgba(15, 20, 25, 0.95) !important;
}

.navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
    transition: var(--transition-base);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-logo {
    height: 35px;
    width: auto;
    max-width: 140px;
    transition: var(--transition-base);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-scrolled .navbar-logo {
    height: 32px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.25rem;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    transition: var(--transition-base);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::before {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    background: rgba(74, 124, 89, 0.15);
    transform: translateY(-1px);
    color: white;
}

/* 햄버거 메뉴 */
.navbar-toggler {
    border: none;
    background: transparent !important;
    padding: 0.25rem;
    width: 35px;
    height: 35px;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.icon-bar {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 1px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: var(--transition-fast);
    margin: 3px auto;
}

.navbar-toggler:not(.collapsed) .icon-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 4px);
}

.navbar-toggler:not(.collapsed) .icon-bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggler:not(.collapsed) .icon-bar:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* 다크모드 토글 */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.theme-switch {
    position: relative;
    width: 55px;
    height: 28px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.25);
    transition: var(--transition-base);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition-base);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(27px);
}

.slider:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

input:checked + .slider:hover {
    background: var(--primary-light);
}

/* ===================================
 * 히어로 섹션 (동적 애니메이션 추가)
 * ===================================
 */

.hero-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-primary);
    overflow: hidden;
    padding: 4rem 0 2rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover;
    opacity: 0.08;
    animation: subtleZoom 20s ease-in-out infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(164, 195, 178, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(74, 124, 89, 0.15) 0%, transparent 50%);
    animation: floatBubbles 15s ease-in-out infinite;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* 히어로 섹션 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtleZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.03); }
}

@keyframes floatBubbles {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-15px, -20px) rotate(90deg); }
    50% { transform: translate(15px, -15px) rotate(180deg); }
    75% { transform: translate(-10px, 10px) rotate(270deg); }
}

/* 플로팅 요소들 */
.hero-section .floating-element {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}

.hero-section .floating-element:nth-child(1) {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.hero-section .floating-element:nth-child(2) {
    top: 25%;
    right: 12%;
    animation-delay: 1.6s;
}

.hero-section .floating-element:nth-child(3) {
    bottom: 30%;
    left: 15%;
    animation-delay: 3.2s;
}

.hero-section .floating-element:nth-child(4) {
    top: 60%;
    right: 20%;
    animation-delay: 4.8s;
}

.hero-section .floating-element:nth-child(5) {
    bottom: 40%;
    right: 8%;
    animation-delay: 6.4s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.08;
    }
    50% { 
        transform: translateY(-15px) rotate(180deg); 
        opacity: 0.12;
    }
}




/* 히어로 섹션 Webworks 브랜드 전용 효과 - 흰색 텍스트 + 회색 테두리 */
.hero-webworks-brand {
    color: #ffffff;
    font-weight: 800;
    position: relative;
    display: inline-block;
    text-shadow: 
        -1px -1px 0 #466553,
        1px -1px 0 #466553,
        -1px 1px 0 #466553,
        1px 1px 0 #466553,
        0 -1px 0 #466553,
        0 1px 0 #466553,
        -1px 0 0 #466553,
        1px 0 0 #466553;
    transition: var(--transition-base);
}

.hero-webworks-brand:hover {
    transform: scale(1.02);
}

/* 다크모드에서도 동일한 효과 */
[data-theme="dark"] .hero-webworks-brand {
    color: #ffffff;
    text-shadow: 
        -1px -1px 0 #466553,
        1px -1px 0 #466553,
        -1px 1px 0 #466553,
        1px 1px 0 #466553,
        0 -1px 0 #466553,
        0 1px 0 #466553,
        -1px 0 0 #466553,
        1px 0 0 #466553;
}





/* ===================================
 * 버튼 스타일
 * ===================================
 */

.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition-base);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary::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: var(--transition-slow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(74, 124, 89, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===================================
 * 회사소개 섹션
 * ===================================
 */

.about-content {
    padding: 2rem 0;
}

.about-image img {
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: var(--transition-base);
    border-left: 4px solid var(--primary-color);
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-light);
}

.service-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* ===================================
 * 성과 지표 섹션
 * ===================================
 */

.achievement-card {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-primary);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border-top: 4px solid var(--primary-color);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary-light);
}

.achievement-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.achievement-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===================================
 * 포트폴리오 섹션
 * ===================================
 */

.portfolio-card {
    background: var(--bg-primary);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
    border: 1px solid var(--border-color);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

.portfolio-title a:hover {
    color: var(--primary-color);
}

.portfolio-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===================================
 * FAQ 섹션
 * ===================================
 */

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 1rem !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.accordion-button {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    border-radius: 1rem !important;
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: transparent;
    box-shadow: 0 0 0 0.2rem rgba(74, 124, 89, 0.25);
}

.accordion-body {
    padding: 1.5rem;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
 * 문의하기 섹션
 * ===================================
 */

.contact-form-wrapper {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-base);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 124, 89, 0.25);
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* ===================================
 * 푸터
 * ===================================
 */

.footer {
    background: var(--bg-dark);
    color: #e2e8f0;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.footer-brand img {
    filter: brightness(0) invert(1);
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-contact p,
.footer-info p {
    margin-bottom: 0.5rem;
    color: #a0aec0;
}

.footer-divider {
    border-color: #4a5568;
    margin: 2rem 0 1rem;
}

.footer-copyright {
    margin: 0;
    color: #a0aec0;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(74, 124, 89, 0.2);
    color: #e2e8f0;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ===================================
 * 스크롤 투 탑
 * ===================================
 */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    z-index: 1000;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ===================================
 * 다크모드 특화 스타일
 * ===================================
 */

[data-theme="dark"] .achievement-card {
    background: var(--bg-secondary);
    border-top-color: var(--primary-light);
}

[data-theme="dark"] .portfolio-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .contact-form-wrapper {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .accordion-button {
    background: var(--bg-secondary);
}

[data-theme="dark"] .accordion-body {
    background: var(--bg-secondary);
}

[data-theme="dark"] .service-item {
    background: var(--bg-primary);
    border-left-color: var(--primary-light);
}

[data-theme="dark"] .accordion-item {
    border-color: var(--border-color);
}

[data-theme="dark"] .portfolio-card:hover {
    border-color: var(--primary-light);
}

/* ===================================
 * 반응형 디자인
 * ===================================
 */

@media (max-width: 1199.98px) {
    .section-title {
        font-size: 2.25rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 991.98px) {
    :root {
        --section-padding: 3rem;
    }
    
    .hero-section {
        min-height: 45vh;
        padding: 3rem 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar-nav {
        background: rgba(26, 32, 44, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 1rem;
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .theme-switch-wrapper {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 2.5rem;
    }
    
    .hero-section {
        min-height: 40vh;
        padding: 2.5rem 0 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .achievement-number {
        font-size: 2rem;
    }
    
    .achievement-icon {
        font-size: 2.5rem;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section {
        min-height: 35vh;
        padding: 2rem 0 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.625rem;
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    .about-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .achievement-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-form-wrapper {
        padding: 1rem;
    }
    
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .navbar-logo {
        height: 30px;
        max-width: 120px;
    }
}

/* ===================================
 * 접근성 및 특수 효과
 * ===================================
 */

/* 포커스 상태 개선 */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-section::before,
    .hero-section::after {
        animation: none !important;
    }
}

/* 고해상도 디스플레이 대응 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 인쇄 스타일 */
@media print {
   .navbar,
   .scroll-to-top,
   .theme-switch-wrapper {
       display: none !important;
   }
   
   .hero-section {
       min-height: auto;
       background: none !important;
   }
   
   .hero-section::before,
   .hero-section::after {
       display: none;
   }
   
   body {
       background: white !important;
       color: black !important;
   }
   
   .achievement-card,
   .portfolio-card,
   .contact-form-wrapper {
       box-shadow: none !important;
       border: 1px solid #ccc !important;
   }
}

/* ===================================
* 추가 애니메이션 효과
* ===================================
*/

/* 페이지 로드 애니메이션 */
.navbar {
   animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
   from {
       transform: translateY(-100%);
       opacity: 0;
   }
   to {
       transform: translateY(0);
       opacity: 1;
   }
}

/* 호버 효과 강화 */
.portfolio-card,
.achievement-card {
   will-change: transform;
}

.service-item,
.achievement-card,
.portfolio-card {
   position: relative;
   overflow: hidden;
}

.service-item::before,
.achievement-card::before,
.portfolio-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(74, 124, 89, 0.05), transparent);
   transition: var(--transition-slow);
   pointer-events: none;
}

.service-item:hover::before,
.achievement-card:hover::before,
.portfolio-card:hover::before {
   left: 100%;
}

/* 버튼 클릭 효과 */
.btn {
   position: relative;
}

.btn:active {
   transform: translateY(1px);
}

/* 스크롤 진행률 표시 */
.scroll-progress {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 3px;
   background: var(--gradient-primary);
   transform-origin: left;
   transform: scaleX(0);
   z-index: 9999;
   transition: transform 0.1s ease;
}

/* 텍스트 선택 스타일 */
::selection {
   background: rgba(74, 124, 89, 0.3);
   color: inherit;
}

::-moz-selection {
   background: rgba(74, 124, 89, 0.3);
   color: inherit;
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
   width: 8px;
}

::-webkit-scrollbar-track {
   background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
   background: var(--primary-color);
   border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
   background: var(--primary-dark);
}

/* 다크모드 스크롤바 */
[data-theme="dark"] ::-webkit-scrollbar-track {
   background: var(--bg-dark);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
   background: var(--primary-light);
}

/* 추가 시각적 효과 */
.hero-title {
   text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
   text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 카드 그림자 그라데이션 효과 */
.portfolio-card:hover,
.achievement-card:hover {
   box-shadow: 
       0 20px 50px rgba(74, 124, 89, 0.15), 
       0 10px 20px rgba(74, 124, 89, 0.08),
       0 0 0 1px rgba(74, 124, 89, 0.1);
}