/* Common Styles */
:root {
    --primary-color: #2b4da0;
    --secondary-color: #92b2ff;
    --dark-color: #000a55;
    --light-color: #ffffff;
    --warning-color: #f59e0b;
    --success-color: #10b981;
    --text-color: #374151;
    --border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://cdn.rawgit.com/moonspam/NanumSquare/master/nanumsquare.css');

* {
    font-family: 'NanumSquare', 'Noto Sans KR', Arial, sans-serif;
}

body {
    font-family: 'NanumSquare', 'Noto Sans KR', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 0;
}

/* Navigation */
.navbar {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 1rem;
    margin: 2rem 1rem 1rem 1rem !important;
    border-radius: 10px !important;
    position: relative !important;
    top: 15px !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    transition: color 0.3s ease;
    padding: 0.5rem 4rem !important;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* 네비게이션 바 원형 상담신청 버튼 */
.navbar-contact-btn {
    margin-left: 1rem;
    display: flex;
    align-items: center;
}

.circle-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #000a55;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.1;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 10, 85, 0.2);
    flex-direction: column;
    flex-shrink: 0;
}

/* 모바일에서 원형 버튼 크기 조정 */
@media (max-width: 768px) {
    .circle-contact-btn {
        width: 55px;
        height: 55px;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .circle-contact-btn {
        width: 50px;
        height: 50px;
        font-size: 0.7rem;
    }
}

.circle-contact-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(43, 77, 160, 0.4);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 10px 20px;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 30px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 12px 16px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 0;
    }
    
    .navbar {
        margin: 1rem 0.5rem !important;
        padding: 0.8rem !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Footer 모바일 스타일 */
    .footer-logo-social {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .social-icons {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: nowrap;
    }
    
    .social-icon {
        width: 50px;
    }
    
    .social-icon-img {
        width: 35px;
        height: 35px;
        margin-bottom: 0;
    }
    
    /* 모바일에서 SNS 이름 텍스트 숨기기 */
    .social-icon-name {
        display: none;
    }
    
    .footer-info {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .footer-info .company-name,
    .footer-info .company-address,
    .footer-info .company-details {
        text-align: center !important;
    }
}

/* Footer */
.footer {
    background: #000955;
    background-image: url('../img/footer_bg.png');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: 50% auto;
    color: white;
    padding: 5rem 0;
    position: relative;
}

.footer-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 15px;
}

.footer-logo-social {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: flex-start;
    width: 100%;
    text-align: left;
}

.footer-logo-img {
    height: 50px;
    width: auto;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.social-icon-name {
    color: white;
    font-size: 0.8rem;
    text-align: center;
    font-weight: 400;
}

.footer-info {
    width: 100%;
    text-align: left !important;
}

.footer-info .company-name {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: left !important;
}

.footer-info .company-address {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    text-align: left !important;
}

.footer-info .company-details {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0;
    text-align: left !important;
}