/* Simple Theme Styles */

:root {
    --primary-color: #4a90e2;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --bg-color: #ffffff;
    --secondary-bg: #f5f5f5;
    --border-color: #e0e0e0;
    --header-bg: #ffffff;
    --footer-bg: #f8f9fa;
}

/* Site Title */
.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    padding: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-title:hover {
    color: var(--primary-color);
    transform: scale(1.05);
    text-decoration: none;
}

/* 3D Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: transparent;
}

/* Global Styles */
body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Header Styles */
#hd {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand img.logo {
    max-height: 40px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img.logo {
    transform: scale(1.05);
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.9;
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover:after {
    width: 100%;
}

.nav-link i {
    margin-right: 5px;
}

/* Content Area */
#container_wr {
    position: relative;
    z-index: 1;
    background: #ffffff;
}

#wrapper {
    position: relative;
    z-index: 1;
    background: #ffffff;
}

/* Company Section */
.company-section {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 20px;
    margin: 2rem 0;
    padding: 3rem;
    color: #333333;
}

.company-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.company-image-wrapper:hover {
    transform: scale(1.02);
}

.company-image-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.feature-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 20px;
    margin: 2rem 0;
    padding: 3rem;
    color: #333333;
    padding: 6rem 0;
    margin-bottom: 3rem;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pattern.png');
    opacity: 0.1;
    animation: slide 20s linear infinite;
}

@keyframes slide {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Button Styles */
.btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
}

/* Latest Posts */
.latest-section {
    padding: 3rem 0;
}

.latest-section .card {
    margin-bottom: 1.5rem;
}

.latest-section .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.latest-section .card-text {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Gallery Section */
.gallery-section {
    padding: 3rem 0;
    background: white;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Features Section */
.feature-box {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Search Box */
.search-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.search-box .form-control {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
}

/* Footer */
#ft {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .feature-box {
        margin-bottom: 1rem;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: darken(var(--primary-color), 10%);
}

/* 상단 메뉴 스타일 */
#tnb {
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 5px 0;
}

#tnb .inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#hd_define {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#hd_define li {
    margin-right: 20px;
}

#hd_define li a {
    color: var(--text-color);
    text-decoration: none;
}

#hd_qnb {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#hd_qnb li {
    margin-left: 20px;
}

#hd_qnb li a {
    color: var(--text-color);
    text-decoration: none;
}

/* 헤더 래퍼 */
#hd_wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    flex: 0 0 auto;
}

#logo img {
    max-height: 50px;
}

.hd_sch_wr {
    flex: 1;
    margin: 0 20px;
}

#hd_sch {
    max-width: 500px;
    margin: 0 auto;
}

#hd_sch input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-color);
    color: var(--text-color);
}

.hd_login {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hd_login li {
    margin-left: 15px;
}

.hd_login li a {
    color: var(--text-color);
    text-decoration: none;
}

/* GNB 메뉴 */
#gnb {
    background: var(--header-bg);
    border-top: 1px solid var(--border-color);
}

.gnb_wrap {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

#gnb_1dul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gnb_1dli {
    position: relative;
}

.gnb_1da {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
}

.gnb_2dul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--header-bg);
    border: 1px solid var(--border-color);
    min-width: 200px;
}

.gnb_1dli:hover .gnb_2dul {
    display: block;
}

.gnb_2dli a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
}

.gnb_2dli a:hover {
    background: var(--secondary-bg);
}

/* 게시판 스타일 다크모드 대응 */
.board_list {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.board_list th {
    background-color: var(--secondary-bg);
    border-color: var(--border-color);
}

.board_list td {
    border-color: var(--border-color);
}

/* 링크 색상 */
a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-color);
    opacity: 0.8;
}

/* 입력 폼 스타일 */
input[type="text"],
input[type="password"],
input[type="email"],
textarea {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

/* 버튼 스타일 */
.btn_submit {
    background-color: var(--primary-color);
    color: white;
}

.btn_submit:hover {
    opacity: 0.9;
}

[data-theme="dark"] {
    --primary-color: #64b5f6;
    --text-color: #ffffff;
    --bg-color: #1a1a1a;
    --secondary-bg: #2d2d2d;
    --border-color: #404040;
    --header-bg: #2d2d2d;
    --footer-bg: #1a1a1a;
} 