/* 하윤소프트 웹사이트 모던 스타일 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css');

:root {
    /* Stitch Cyber-Professional Palette */
    --bg-deep: #0A0E14;
    --bg-card: rgba(15, 23, 42, 0.6);
    --primary-color: #00E5FF; /* Cyan Glow */
    --primary-dark: #00B8D4;
    --secondary-color: #BF5AF2; /* Purple Glow */
    --accent-glow-cyan: rgba(0, 229, 255, 0.4);
    --accent-glow-purple: rgba(191, 90, 242, 0.4);
    
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --text-secondary: #A0A0A0;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-cyan: rgba(0, 229, 255, 0.2);
    --border-purple: rgba(191, 90, 242, 0.2);

    --shadow-cyan: 0 0 20px var(--accent-glow-cyan);
    --shadow-purple: 0 0 20px var(--accent-glow-purple);
    --shadow-premium: 0 10px 40px rgba(0, 0, 0, 0.5);
    
    --radius-premium: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

/* Company Logo Styling */
.company-logo {
    height: 32px;
    width: 32px;
    object-fit: contain;
    /* filter: brightness(0) invert(1); 원본 이미지 색상 유지 */
    transition: all 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.1);
}

/* 대형 로고 스타일 (홈페이지용) */
.company-logo-large {
    height: 80px;
    width: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.company-logo-large:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* 중간 크기 로고 (회사소개 페이지용) */
.company-logo-medium {
    height: 60px;
    width: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-deep);
    font-weight: 400;
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

/* 네비게이션 스타일 */
.navbar {
    background: transparent !important;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar.navbar-scrolled {
    background: rgba(10, 14, 20, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.navbar.fixed-top {
    z-index: 1030;
}

.navbar-brand {
    font-weight: 800;
    color: white !important;
    letter-spacing: -0.02em;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.7rem 1.2rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(0, 229, 255, 0.05);
}

.dropdown-menu {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 0.8rem;
    min-width: 200px;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.8rem 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(0, 229, 255, 0.08);
    color: var(--primary-color);
    transform: translateX(8px);
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    transform: translateX(4px);
}

/* 히어로 섹션 */
.hero-section {
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.1) 0%, transparent 70%),
                radial-gradient(circle at top right, rgba(191, 90, 242, 0.05) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-section .lead {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-section .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-section .btn:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 카드 스타일 */
.card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-premium);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-premium);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-premium) var(--radius-premium) 0 0 !important;
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
    color: var(--text-main);
}

.card-title {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card-text {
    color: var(--muted-text);
    line-height: 1.7;
}

/* 버튼 스타일 */
.btn {
    border-radius: var(--radius-md);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

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

.btn-secondary:hover {
    background-color: var(--dark-text);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-light {
    background-color: white;
    color: var(--dark-text);
    border: 1px solid var(--border-color);
}

.btn-light:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* 테이블 스타일 */
.table {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th {
    border-top: none;
    font-weight: 600;
    background-color: var(--light-bg);
    color: var(--dark-text);
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.table td {
    padding: 1rem;
    border-color: var(--border-color);
    vertical-align: middle;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--light-bg);
    transform: scale(1.005);
}

/* 타임라인 스타일 */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.timeline .card {
    margin-left: 2rem;
    position: relative;
    margin-bottom: 2rem;
}

.timeline .card::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: var(--shadow-md);
}

/* 뱃지 스타일 */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 푸터 스타일 */
footer {
    background: linear-gradient(135deg, var(--dark-text) 0%, #334155 100%);
    color: white;
    margin-top: 4rem;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Global Bootstrap Overrides for Dark Theme */
.bg-light {
    background-color: rgba(30, 41, 59, 0.5) !important;
}

.text-dark {
    color: var(--text-main) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.list-group-item {
    background-color: transparent !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

.form-control {
    background-color: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.modal-content {
    background-color: var(--bg-deep) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
}

.pagination .page-link {
    background-color: rgba(30, 41, 59, 0.5) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.table {
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

.table> :not(caption)>*>* {
    background-color: transparent !important;
    color: var(--text-main) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.dropdown-menu {
    background-color: var(--bg-deep) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-premium) !important;
}

.dropdown-item {
    color: var(--text-main) !important;
}

.dropdown-item:hover {
    background-color: var(--light-bg) !important;
    color: var(--primary-color) !important;
}

/* 서비스 카드 */
.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

.service-card .icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--primary-color);
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.service-card:hover .icon {
    background: var(--primary-color);
    color: var(--bg-deep);
    box-shadow: 0 0 20px var(--accent-glow-cyan);
}

.service-card h4 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 !important;
        margin-bottom: 2rem;
    }

    .hero-section h1 {
        font-size: 2.5rem !important;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline::before {
        left: 0.5rem;
    }

    .timeline .card {
        margin-left: 1.5rem;
    }

    .timeline .card::before {
        left: -2.5rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }

    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        display: none;
    }

    .timeline .card {
        margin-left: 0;
    }

    .timeline .card::before {
        display: none;
    }

    .service-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* 콘텐츠 스타일 */
.content {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.7;
    color: var(--muted-text);
}

/* 특별한 효과 */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-premium);
    box-shadow: var(--shadow-premium);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(14, 165, 233, 0.2);
}

.gradient-text {
    background: linear-gradient(90deg, #00E5FF 0%, #BF5AF2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.mastery-badge {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.text-secondary {
    color: var(--text-muted) !important;
}

.glass-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-weight: 500;
}

.bg-success-glow {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.bg-warning-glow {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.text-primary-emphasis {
    color: #38bdf8 !important;
}

.fw-extrabold {
    font-weight: 800;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}