/* Core Styles */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    /* 로고의 'medic' 부분 색상: 진한 회색/네이비 */
    --color-primary: #2A2F3D; 
    --color-primary-dark: #1E232B;
    
    /* 로고의 'AI' 부분 색상: 밝은 파란색 */
    --color-secondary: #3498DB; 
    --color-secondary-dark: #2980B9; /* 약간 더 진한 파란색 */

    /* 중립적인 회색 톤 유지 */
    --color-gray: #555555; /* 텍스트 가독성을 위해 약간 밝게 조정 */
    --color-light-gray: #f8f8f8; /* 배경색으로 사용될 더 밝은 회색 */
    --color-white: #ffffff;
    --color-dark-gray-bg: #1a1a1a; /* 푸터 등 어두운 배경 */

    --font-sans: 'Noto Sans KR', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-gray);
    background-color: var(--color-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary); /* 메인 색상 */
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 50px;
}

/* Header */
.header {
    background-color: var(--color-white);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease-in-out;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo a {
    text-decoration: none;
}

.logo img {
    height: 40px; 
    width: auto;
    vertical-align: middle;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: var(--color-gray);
    font-weight: 500;
    transition: color 0.3s ease-in-out;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary); /* 강조색 */
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease-in-out;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--color-secondary); /* 강조색 */
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    /* 로고 색상을 활용한 그라데이션 */
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); 
    color: var(--color-white);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 10;
    padding: 0 20px;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.hero-subline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-btn {
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

.cta-btn.primary {
    background-color: var(--color-white);
    color: var(--color-secondary); /* 강조색 */
}

.cta-btn.primary:hover {
    background-color: var(--color-light-gray);
    transform: translateY(-3px);
}

.cta-btn.secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.cta-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Products Section */
.products-section {
    background-color: var(--color-light-gray); /* 더 밝은 배경색 */
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--color-white);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    color: var(--color-secondary); /* 강조색 */
    font-size: 3rem;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.product-card p {
    font-size: 1rem;
    color: var(--color-gray);
}

/* About Section */
.about-section {
    background-color: var(--color-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    text-align: left;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.stats-list {
    list-style: none;
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stats-list li {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-gray);
}

.stat-number {
    color: var(--color-secondary); /* 강조색 */
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Technology Section */
.technology-section {
    background-color: var(--color-light-gray);
}

.tech-content {
    text-align: center;
}

.tech-content p {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

.tech-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.tech-card {
    /* 로고 색상을 활용한 그라데이션 */
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); 
    color: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    flex: 1;
    min-width: 250px;
}

.tech-card:hover {
    transform: scale(1.05);
}

.tech-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.tech-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Team Section */
.team-section {
    background-color: var(--color-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-content: center;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--color-light-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member img:hover {
    transform: scale(1.05);
}

.member-info {
    margin-top: 20px;
}

.member-info h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.member-info small {
    display: block;
    color: var(--color-secondary); /* 강조색 */
    font-weight: 500;
}

.member-info p {
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* Contact Section */
/* Contact Section */
.contact-section {
    background-color: var(--color-light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    text-align: left;
}

.contact-info h3, .contact-action-box h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--color-gray);
}

.contact-info i {
    color: var(--color-secondary);
    margin-right: 10px;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--color-secondary-dark);
}

/* 새로운 문의 섹션 디자인 */
.contact-action-box {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center; /* 중앙 정렬 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-action-box p {
    margin-bottom: 30px;
}

/* 기존 submit-btn을 cta-btn으로 재활용 */
.contact-action-box .cta-btn.primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-decoration: none;
    align-self: center; /* 버튼 중앙 정렬 */
}

.contact-action-box .cta-btn.primary:hover {
    background-color: var(--color-secondary-dark);
}

.contact-form {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary); /* 강조색 */
}

.submit-btn {
    display: inline-block;
    background-color: var(--color-secondary); /* 강조색 */
    color: var(--color-white);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--color-secondary-dark);
}

/* Footer */
.footer {
    background-color: var(--color-dark-gray-bg); /* 진한 회색 배경 */
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: var(--color-primary); /* 메인 색상 */
    z-index: 1001;
    display: none;
    flex-direction: column;
    padding-top: 80px;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-nav.open {
    transform: translateX(0);
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}

.mobile-nav-list {
    list-style: none;
    padding: 20px;
    width: 100%;
}

.mobile-nav-list li {
    margin-bottom: 20px;
}

.mobile-nav-list a {
    text-decoration: none;
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.mobile-nav-list a:hover {
    color: var(--color-secondary); /* 강조색 */
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-subline {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .logo img {
        height: 35px;
    }
}