/* ============================================================
   index.css - 메인 페이지 스타일
   ============================================================ */

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 공통 Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 공통 Section */
section {
    padding: 100px 0;
}

/* 공통 Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: #2563eb;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: normal;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #333;
}

/* Hero Section */
#home {
    width: 100%;
    height: 100vh;
    background-image: url('/static/media/main_01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ============================================================
   Profile Section
   ============================================================ */
#profile {
    background: #f8f9fa;
}

.profile-cards {
    display: grid;
    grid-template-columns: repeat(3, 400px);
    gap: 30px;
    justify-content: center;
}

.profile-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.card-subtitle {
    color: #2563eb;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: bold;
}

.profile-card p {
    color: #666;
    margin-bottom: 15px;
}

.small-text {
    font-size: 15px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.card-tags span {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
}

/* ============================================================
   Service Section
   ============================================================ */
#services {
    background: #fff;
}

.section-description {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e9ecef;
}

.service-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.service-card > p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-button-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.service-button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.service-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* ============================================================
   Clients Section
   ============================================================ */
#institutions {
    background: #f8f9fa;
}

.institutions-logos {
    margin-top: 60px;
    overflow: hidden;
}

.logo-section {
    margin-bottom: 40px;
}

.logo-section-title {
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 20px;
}

.logo-row {
    display: flex;
    align-items: center;
    margin: 40px 0;
    animation: scroll-left 120s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.logo-row-2 {
    animation: scroll-right 300s linear infinite;
}

.logo-row-3 {
    animation: scroll-left 50s linear infinite;
}

.logo-image-only {
    max-height: 100px;
    object-fit: contain;
    margin: 0 60px;
    flex-shrink: 0;
}

.logo-image-only-2 {
    max-height: 80px;
    object-fit: contain;
    margin: 0 20px;
    flex-shrink: 0;
}

.logo-image-only-3 {
    max-height: 60px;
    object-fit: contain;
    margin: 0 10px;
    flex-shrink: 0;
}

@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ============================================================
   Materials Section
   ============================================================ */
#materials {
    background: #fff;
}

.materials-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.materials-visual {
    height: 400px;
}

.notes-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.materials-info {
    text-align: left;
}

.materials-info h3 {
    color: #2563eb;
    font-size: 16px;
    margin-bottom: 10px;
}

.materials-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.materials-info > p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.materials-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.material-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.material-item:last-child {
    border-bottom: none;
}

.material-button {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.material-button:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.material-description {
    flex: 1;
}

.material-description p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.material-note {
    color: #666 !important;
    font-size: 14px !important;
    font-style: italic;
}

/* ============================================================
   Contact Section
   ============================================================ */
#contact {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('/static/media/connect.jpg');
    position: relative;
    display: flex;
    align-items: center;
}

.contact-overlay {
    width: 100%;
    padding: 10px 0;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
}

.contact-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 8px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-card {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    min-width: 400px;
}

.contact-card-content {
    padding: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.contact-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.contact-card-footer {
    padding: 20px 30px;
    text-align: center;
}

.contact-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.contact-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 60px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   Inquiry Modal
   ============================================================ */
.inquiry-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.inquiry-modal-overlay.active {
    display: flex;
}

.inquiry-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.inquiry-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 12px 12px 0 0;
}

.inquiry-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.inquiry-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.inquiry-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.inquiry-modal-content {
    padding: 24px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
    color: #374151;
    resize: vertical;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.privacy-policy {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    background: #f9fafb;
    resize: none;
    box-sizing: border-box;
    color: #6b7280;
    line-height: 1.5;
    white-space: pre-wrap;
    font-family: inherit;
}

.agreement-checkbox {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.agreement-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.agreement-checkbox label {
    margin: 0;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.inquiry-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 50px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.cancel-button,
.submit-button {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cancel-button {
    background: #f3f4f6;
    color: #374151;
}

.cancel-button:hover {
    background: #e5e7eb;
}

.submit-button {
    background: #2563eb;
    color: #fff;
}

.submit-button:hover:not(:disabled) {
    background: #1d4ed8;
}

.submit-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
    .profile-cards,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .materials-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-card {
        min-width: unset;
        width: 100%;
    }

    .inquiry-modal-buttons {
        flex-direction: column;
    }

    .cancel-button,
    .submit-button {
        width: 100%;
    }
}
