/* 공통 변수 및 기본 속성 설정 */
:root {
    --primary-color: #0a192f;
    --secondary-color: #00b4d8;
    --accent-color: #0077b6;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-text: linear-gradient(90deg, #00b4d8, #48cae4);
    --font-main: 'Pretendard', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
}

/* 네비게이션바 (Navbar) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--secondary-color);
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* 버튼 스타일 구성 */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(0, 119, 182, 0.39);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    overflow: hidden;
    background-color: var(--primary-color);
}

/* 슬라이더 전체를 감싸는 컨테이너 */
.hero-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

/* 개별 슬라이드 설정 */
.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* 기본적으로 모두 투명하게 가림 */
    transition: opacity 1.5s ease-in-out; /* 1.5초 부드러운 전환 효과 */
    z-index: 1;
}

.slide.active {
    opacity: 1; /* 활성화된 이미지만 보임 */
    z-index: 2; /* 보이는 이미지를 위로 정렬 */
}

/* 글자 가독성을 위해 슬라이더 위를 덮는 어두운 그라데이션 필터 */
.slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(10, 25, 47, 0.6), rgba(2, 6, 23, 0.8));
    z-index: 5;
}

/* 4번 슬라이드 이미지 특화 보정 */
.hero-slider .slide:nth-child(4) {
    background-position: center 30%; /* 이미지의 약간 윗부분을 중심으로 표시 */
    filter: brightness(1.15) contrast(1.05); /* 밝기와 대비를 살짝 높임 */
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: #0077b6;
    top: -100px;
    right: -100px;
    animation: float 10s infinite ease-in-out;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background: #03045e;
    bottom: -200px;
    left: -200px;
    animation: float 12s infinite ease-in-out reverse;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 180, 216, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 대표 인사말 (CEO Message) Section */
.ceo-message {
    padding: 8rem 2rem;
    background-color: var(--bg-dark);
}

.features {
    padding: 8rem 2rem;
    background-color: var(--bg-dark);
}

.message-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.ceo-image-wrapper {
    position: relative;
    border-radius: 24px;
    z-index: 1;
}

.ceo-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    display: block;
    position: relative;
    z-index: 5;
    border: 1px solid rgba(255,255,255,0.1);
}

.image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 4px solid var(--secondary-color);
    border-left: 4px solid var(--secondary-color);
    border-radius: 24px 0 0 0;
    z-index: 2;
}

.ceo-info-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent-color);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.ceo-info-badge .year {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.ceo-info-badge .txt {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.ceo-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.ceo-content h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2.5rem;
}

.message-body {
    margin-bottom: 3rem;
}

.intro-quote {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
    line-height: 1.5;
}

.message-body p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    word-break: keep-all;
}

.ceo-signature {
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    position: relative;
}

.sig-name {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.sig-name .name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.sig-name .seal {
    font-size: 1rem;
    opacity: 0.6;
}

.handwriting {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: var(--secondary-color);
    opacity: 0.4;
    position: absolute;
    right: 0;
    top: 1.5rem;
    user-select: none;
    transform: rotate(-5deg);
}

/* 반응형 모바일 최적화 추가 */
@media (max-width: 991px) {
    .message-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
    .ceo-content {
        text-align: center;
    }
    .ceo-content h2 { font-size: 2rem; }
    .intro-quote { text-align: left; }
    .sig-name { justify-content: center; }
    .handwriting { position: static; transform: none; margin-top: 1rem; }
}

/* CTA 유도 섹션 */
.cta-section {
    padding: 6rem 2rem;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0,119,182,0.8), rgba(3,4,94,0.8));
    padding: 4rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-container p {
    color: #cbd5e1;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-info {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0,0,0,0.2);
    padding: 1rem 3rem;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info:hover {
    background: rgba(0,0,0,0.4);
    transform: scale(1.05);
    color: var(--secondary-color);
}

/* 서비스 전문 분야 인포그래픽 */
.specialty-infographic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.specialty-item {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.specialty-item.active {
    border-color: var(--secondary-color);
    background: rgba(0, 180, 216, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.specialty-item:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    background: rgba(0, 180, 216, 0.1);
}

.spec-icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3);
}

.specialty-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.specialty-item p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* 현장별 확장 서비스(Coverage) 그리드 */
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.coverage-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.coverage-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--secondary-color);
    transform: scale(1.02);
}

.cv-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    opacity: 0.8;
}

.cv-text h4 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cv-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 반응형 모바일 최적화 */
@media (max-width: 991px) {
    .specialty-infographic {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .coverage-grid {
        grid-template-columns: 1fr;
    }
}

/* 애니메이션 및 모션 디자인 */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s forwards ease-out;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 반응형 모바일 최적화 */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .nav-links { display: none; }
    .contact-info { font-size: 2rem; padding: 1rem 2rem; }
}

/* SVG 벡터 로고 스타일 (배경 완전 투명, 초고해상도 유지) */
.custom-svg-logo {
    height: 40px;
    width: auto;
    margin-right: 8px;
    color: var(--secondary-color); /* 로고 선 색상을 메인 테마 색상으로 자동 적용 */
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.logo:hover .custom-svg-logo {
    transform: scale(1.05); /* 로고에 마우스를 올렸을 때 약간 커지는 효과 */
}

/* 푸터 구역 */
footer {
    background-color: #020617;
    padding: 6rem 2rem 4rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* 명확한 구분선 */
    position: relative;
    z-index: 10;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.5;
    margin-top: 2rem !important;
}

/* 푸터 전용 SVG 로고 */
.footer-logo .custom-svg-logo {
    height: 35px;
    width: auto;
    margin-right: 10px;
    color: #fff;
}
/* 실시간 알림창 (Notification Toast) 스타일 */
.notification-container {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 2000;
    pointer-events: none;
}

.notification-toast {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 180, 216, 0.4);
    border-right: 5px solid var(--secondary-color);
    border-left: none;
    border-radius: 16px;
    padding: 1.2rem 1.8rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
    animation: toastScaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
               toastFadeOut 0.5s 4.5s forwards;
    transform-origin: right bottom;
    max-width: 400px;
    pointer-events: auto;
}

.toast-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 180, 216, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.toast-msg {
    font-size: 0.95rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-time {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-top: 0.3rem;
    font-weight: 600;
}

@keyframes toastScaleIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* 모바일 화면 대응 */
@media (max-width: 768px) {
    .notification-container {
        bottom: 1.5rem;
        left: 1.5rem;
        right: 1.5rem;
    }
    .notification-toast {
        max-width: 100%;
        padding: 1rem 1.5rem;
    }
}

/* 아카데미 전용 섹션 스타일 */
.academy-section {
    position: relative;
    padding: 10rem 2rem;
    overflow: hidden;
    background-color: #000;
}

.academy-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.a-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.a-slide.active {
    opacity: 1;
    z-index: 2;
}

.a-slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(10, 25, 47, 0.7), rgba(2, 6, 23, 0.9));
    z-index: 5;
}

.academy-content-box {
    position: relative;
    z-index: 10;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.curriculum-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.curriculum-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-color);
}

.curr-step {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border: 1px solid var(--secondary-color);
    border-radius: 50px;
}

.curriculum-card h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.curriculum-card p {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .curriculum-grid {
        grid-template-columns: 1fr;
    }
}
