@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #0a0b10;
    --bg-card: rgba(26, 28, 36, 0.7);
    --primary: #00f5ff;
    --primary-glow: rgba(0, 245, 255, 0.3);
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --accent: #7000ff;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-button {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 0 20px var(--primary-glow);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,11,16,0.9) 0%, rgba(10,11,16,0.4) 100%), url('assets/hero.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.1);
    filter: brightness(0.7);
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    margin-top: 4rem; /* 버튼 위치를 더 아래로 조정 */
    display: flex;
    gap: 1.5rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer; /* 클릭 가능함을 표시 */
}

.view-gallery {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    opacity: 0.7;
    transition: var(--transition);
}

.service-card:hover .view-gallery {
    opacity: 1;
    transform: translateX(5px);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 1000px;
    border-radius: 24px;
    position: relative;
    animation: modalReveal 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalReveal {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    right: 2rem;
    top: 1.5rem;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-content h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.gallery-img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    background-color: #0f1118; /* 남는 공간을 자연스럽게 채움 */
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.gallery-img:hover {
    transform: scale(1.02);
    border-color: var(--primary);
}

.modal-content.booking-content {
    max-width: 600px; /* 상담 폼은 조금 더 좁게 */
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

.form-group select option {
    background: #1a1c24;
    color: #fff;
}

/* media query for mobile */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
    }
}

/* Featured Section */
.featured {
    background: #0f1118;
}

.featured-split {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.featured-image {
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    height: 500px;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* 사진 윗부분(사람 모습)이 잘리지 않고 중심에 오도록 위치 조정 */
}

.featured-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

/* Certifications */
.certifications {
    background: var(--bg-dark);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.cert-card {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.1);
}

.cert-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #1e212b;
    border-bottom: 1px solid var(--glass-border);
}

.cert-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 상장 이미지 전체가 보이도록 contain 설정 */
    padding: 1rem;
    transition: var(--transition);
}

.cert-card:hover .cert-img-wrapper img {
    transform: scale(1.05);
}

.cert-info {
    padding: 2rem;
}

.cert-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.cert-info p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Footer */
footer {
    padding: 50px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-dim);
}

footer .logo {
    margin-bottom: 1.5rem;
    display: inline-block;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .featured-split {
        flex-direction: column;
    }
    .featured-image {
        width: 100%;
        height: 300px;
    }
    .modal-content.notice-content {
        padding: 1.5rem;
        margin: 10% auto;
    }
    .article-title {
        font-size: 1.4rem !important;
    }
}

/* Notice Modal Styles */
.modal-content.notice-content {
    max-width: 650px;
    padding: 2.5rem;
    background: #ffffff;
    color: #333333;
}

.modal-content.notice-content .close-modal {
    color: #999;
}

.modal-content.notice-content .close-modal:hover {
    color: #333;
}

.notice-article {
    text-align: left;
}

.article-category {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.article-title {
    color: #222 !important;
    font-size: 1.8rem !important;
    line-height: 1.3;
    margin-bottom: 1rem !important;
    word-break: keep-all;
}

.article-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.article-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 1.5rem;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
}

.article-image-container {
    margin-bottom: 1.5rem;
    text-align: center;
}

.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.article-body p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #444;
    text-align: justify;
    word-break: keep-all;
}

.notice-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.dont-show-today {
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dont-show-today input {
    cursor: pointer;
}

.notice-close-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.notice-close-btn:hover {
    background: #555;
}
