@charset "utf-8";

/* --- [변수 및 기본 설정] --- */
:root {
    --primary-navy: #002B5B;
    --tech-blue: #0064FF;
    --dark-gray: #222222;
    --light-gray: #f4f6f9;
    --border-line: #e5e7eb;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Pretendard", sans-serif; }
html { scroll-behavior: smooth; }
body { color: var(--dark-gray); line-height: 1.7; overflow-x: hidden; word-break: keep-all; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
section { overflow: hidden; }

/* 공통 레이아웃 */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.bg-gray { background-color: var(--light-gray); }

/* 섹션 헤더 */
.section-header { margin-bottom: 70px; text-align: center; }
.section-header .sub-tit { display: block; color: var(--tech-blue); font-weight: 800; letter-spacing: 3px; margin-bottom: 15px; font-size: 15px; text-transform: uppercase; }
.section-header h2 { font-size: 44px; font-weight: 800; color: var(--primary-navy); position: relative; padding-bottom: 25px; line-height: 1.3; }
.section-header h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: linear-gradient(to right, var(--primary-navy), var(--tech-blue)); border-radius: 2px; }
.section-desc { max-width: 700px; margin: 0 auto; color: #666; font-size: 18px; margin-bottom: 50px; text-align: center; }

/* --- [헤더 (Header)] --- */
header { position: fixed; top: 0; width: 100%; z-index: 9999; background: transparent; border-bottom: 1px solid rgba(255,255,255,0.15); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); padding: 25px 0; }
header.scrolled { background: rgba(255,255,255,0.98); padding: 15px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-bottom: none; backdrop-filter: blur(10px); }
/* 서브페이지용 헤더 강제 적용 클래스 */
header.sub-header { background: #fff; border-bottom: 1px solid rgba(0,0,0,0.05); padding: 15px 0; }
header.sub-header .logo { color: var(--primary-navy); }
header.sub-header .gnb a { color: var(--dark-gray); }

.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 26px; font-weight: 900; color: #fff; letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px; }
.logo i { color: var(--tech-blue); }
header.scrolled .logo { color: var(--primary-navy); }

.gnb { display: flex; gap: 40px; }
.gnb a { font-size: 17px; font-weight: 600; color: rgba(255,255,255,0.9); position: relative; }
.gnb a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--tech-blue); transition: 0.3s; }
.gnb a:hover { color: #fff; }
.gnb a:hover::after { width: 100%; }
header.scrolled .gnb a { color: var(--dark-gray); }
header.scrolled .gnb a:hover { color: var(--tech-blue); }

.btn-inquiry { padding: 12px 28px; background: var(--tech-blue); color: #fff; font-weight: 700; border-radius: 50px; font-size: 15px; box-shadow: 0 5px 15px rgba(0,100,255,0.3); }
.btn-inquiry:hover { background: var(--primary-navy); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,43,91,0.3); }

/* --- [메인 비주얼 (Hero)] --- */
.hero { height: 100vh; position: relative; background: linear-gradient(rgba(0, 10, 40, 0.6), rgba(0, 20, 60, 0.5)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070'); background-size: cover; background-position: center; background-attachment: fixed; display: flex; align-items: center; text-align: center; color: #fff; }
.hero-content { width: 100%; max-width: 1000px; margin: 0 auto; }
.hero-subtitle { display: block; font-size: 20px; font-weight: 700; color: var(--tech-blue); margin-bottom: 20px; letter-spacing: 2px; text-transform: uppercase; }
.hero-content h1 { font-size: 64px; font-weight: 900; line-height: 1.2; margin-bottom: 30px; text-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.hero-content p { font-size: 22px; font-weight: 400; opacity: 0.95; margin-bottom: 50px; max-width: 800px; margin: 0 auto 50px; }
.scroll-icon { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); animation: pulse 2s infinite; opacity: 0.8; font-size: 14px; color: #fff; letter-spacing: 2px; }
@keyframes pulse { 0% { transform: translate(-50%, 0); opacity: 0.5; } 50% { transform: translate(-50%, 15px); opacity: 1; } 100% { transform: translate(-50%, 0); opacity: 0.5; } }

/* --- [서브 페이지 전용 (Sub Visual)] --- */
.sub-visual { 
    height: 400px; 
    background: linear-gradient(rgba(0, 43, 91, 0.8), rgba(0, 43, 91, 0.6)), url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?q=80&w=2069'); 
    background-size: cover; background-position: center; 
    display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
    margin-top: 0; /* 헤더 뒤로 배경이 깔리도록 */
}
.sub-visual h2 { font-size: 48px; font-weight: 800; margin-bottom: 15px; }
.sub-visual p { font-size: 18px; opacity: 0.8; letter-spacing: 1px; }

/* --- [회사 소개 (About)] --- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img { height: 600px; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,43,91,0.15); position: relative; z-index: 2; }
.about-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.about-img:hover img { transform: scale(1.05); }
.about-img-wrap::before { content: ''; position: absolute; top: -40px; left: -40px; width: 100%; height: 100%; border: 3px solid var(--tech-blue); border-radius: 12px; z-index: 1; opacity: 0.3; }
.about-txt h3 { font-size: 36px; font-weight: 800; margin-bottom: 30px; color: var(--primary-navy); line-height: 1.3; }
.about-txt p { color: #555; margin-bottom: 25px; font-size: 17px; text-align: justify; }

.core-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.value-item { text-align: center; padding: 25px 15px; background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid var(--border-line); }
.value-item:hover { transform: translateY(-10px); border-color: var(--tech-blue); box-shadow: 0 15px 40px rgba(0,100,255,0.1); }
.value-icon { font-size: 32px; color: var(--tech-blue); margin-bottom: 15px; }
.value-item h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--primary-navy); }
.value-item p { font-size: 14px; color: #777; line-height: 1.5; }

/* --- [사업 분야 (Business)] --- */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.biz-card { background: #fff; padding: 50px 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: all 0.4s ease; position: relative; overflow: hidden; border-bottom: 3px solid transparent; }
.biz-card::before { content: ''; position: absolute; top: 0; right: 0; width: 100px; height: 100px; background: linear-gradient(to bottom left, rgba(0,100,255,0.05) 50%, transparent 50%); transition: 0.4s; }
.biz-card:hover { transform: translateY(-15px); box-shadow: 0 20px 60px rgba(0,43,91,0.1); border-bottom-color: var(--tech-blue); }
.biz-card:hover::before { transform: scale(1.5); }
.biz-icon-box { width: 70px; height: 70px; background: rgba(0,100,255,0.05); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--tech-blue); margin-bottom: 30px; transition: 0.4s; }
.biz-card:hover .biz-icon-box { background: var(--tech-blue); color: #fff; box-shadow: 0 10px 20px rgba(0,100,255,0.3); }
.biz-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 15px; color: var(--primary-navy); }
.biz-card h3 span { display: block; font-size: 13px; color: var(--tech-blue); margin-top: 8px; font-weight: 600; letter-spacing: 1px; }
.biz-card p { font-size: 16px; color: #666; line-height: 1.6; }

/* --- [연혁 (History)] --- */
.history-wrap { position: relative; max-width: 1000px; margin: 0 auto; padding: 40px 0; }
.history-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: #e0e0e0; transform: translateX(-50%); }
.history-line::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 30%; background: var(--tech-blue); z-index: 1; }
.history-row { display: flex; justify-content: space-between; margin-bottom: 70px; position: relative; z-index: 2; }
.history-row:nth-child(even) { flex-direction: row-reverse; }
.history-date { width: 44%; text-align: right; padding-right: 50px; position: relative; display: flex; align-items: center; justify-content: flex-end; }
.history-row:nth-child(even) .history-date { text-align: left; padding-right: 0; padding-left: 50px; justify-content: flex-start; }
.history-date h4 { font-size: 48px; font-weight: 900; color: var(--primary-navy); line-height: 1; }
.history-content { width: 44%; background: #fff; padding: 35px; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.06); border: 1px solid var(--border-line); transition: 0.3s; position: relative; }
.history-row:hover .history-content { transform: translateY(-5px); border-color: var(--tech-blue); box-shadow: 0 20px 50px rgba(0,100,255,0.1); }
.history-content::before { content: ''; position: absolute; top: 50%; left: -10px; margin-top: -10px; border-width: 10px 10px 10px 0; border-style: solid; border-color: transparent #fff transparent transparent; }
.history-row:nth-child(even) .history-content::before { left: auto; right: -10px; border-width: 10px 0 10px 10px; border-color: transparent transparent transparent #fff; }
.history-content li { font-size: 16px; color: #555; margin-bottom: 12px; position: relative; padding-left: 18px; }
.history-content li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--tech-blue); border-radius: 50%; }
.history-dot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 20px; height: 20px; background: var(--tech-blue); border: 4px solid #fff; border-radius: 50%; z-index: 2; box-shadow: 0 0 0 4px rgba(0,100,255,0.2); transition: 0.3s; }
.history-row:hover .history-dot { transform: translate(-50%, -50%) scale(1.2); box-shadow: 0 0 0 6px rgba(0,100,255,0.3); }

/* --- [포트폴리오] --- */
.pf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pf-item { height: 300px; position: relative; overflow: hidden; border-radius: 12px; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.pf-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.pf-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0, 43, 91, 0.9), rgba(0, 43, 91, 0.4)); opacity: 0; transition: 0.4s; transform: translateY(20px); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; }
.pf-item:hover img { transform: scale(1.1); }
.pf-item:hover .pf-overlay { opacity: 1; transform: translateY(0); }
.pf-overlay h4 { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 8px; transform: translateY(10px); transition: 0.4s; transition-delay: 0.1s; }
.pf-overlay span { color: var(--tech-blue); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transform: translateY(10px); transition: 0.4s; }
.pf-item:hover h4, .pf-item:hover span { transform: translateY(0); }

/* --- [CTA Section] --- */
.cta-section { background: linear-gradient(rgba(0,43,91,0.8), rgba(0,43,91,0.9)), url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?q=80&w=2070'); background-size: cover; background-position: center; padding: 100px 0; text-align: center; color: #fff; background-attachment: fixed; }
.cta-section h2 { font-size: 38px; font-weight: 800; margin-bottom: 20px; }
.cta-section p { font-size: 18px; opacity: 0.9; margin-bottom: 40px; max-width: 600px; margin: 0 auto 40px; }

/* --- [푸터] --- */
footer { background: #111; color: #aaa; padding: 80px 0 30px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-logo { color: #fff; font-size: 22px; font-weight: 800; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.footer-desc { line-height: 1.6; margin-bottom: 30px; }
.footer-title { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 25px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
.footer-contact i { color: var(--tech-blue); margin-top: 5px; }
.copyright { margin-top: 60px; border-top: 1px solid #222; padding-top: 30px; text-align: center; color: #666; font-size: 14px; }

/* --- [반응형 미디어 쿼리] --- */
@media (max-width: 1200px) {
    .hero-content h1 { font-size: 50px; }
    .biz-grid { gap: 20px; }
    .biz-card { padding: 30px 20px; }
}
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 50px; }
    .about-img { height: 400px; }
    .biz-grid, .pf-grid { grid-template-columns: 1fr 1fr; }
    .header-inner { padding: 0 20px; }
}
@media (max-width: 768px) {
    .gnb { display: none; } 
    .hero-content h1 { font-size: 36px; }
    .hero-content p { font-size: 18px; }
    .section-header h2 { font-size: 32px; }
    .biz-grid, .pf-grid, .core-values, .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .history-line { left: 20px; }
    .history-row, .history-row:nth-child(even) { flex-direction: column; padding-left: 50px; margin-bottom: 40px; }
    .history-date, .history-row:nth-child(even) .history-date { width: 100%; text-align: left; padding: 0; margin-bottom: 15px; justify-content: flex-start; }
    .history-content { width: 100%; }
    .history-content::before { display: none; }
    .history-dot { left: 20px; top: 20px; transform: none; }
    .sub-visual { height: 300px; }
    .sub-visual h2 { font-size: 36px; }
}