/* 1. 기본 설정 및 초기화 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Pretendard', sans-serif;
    background-color: #0f172a; 
    color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 2. 상단 헤더 (Header) */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 20px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

/* 로고 그룹: 크기 20% 확대 및 링크 스타일 적용 */
.logo-group { 
    display: flex; 
    align-items: center; 
    text-decoration: none; /* 링크 밑줄 제거 */
    transition: opacity 0.3s ease;
}

.logo-group:hover {
    opacity: 0.8; /* 클릭 가능한 요소임을 암시 */
}

.logo-text { 
    font-size: 20px; /* 기존 16px에서 20% 확대 적용 */
    font-weight: 700; 
    color: #ffffff; 
    letter-spacing: 0.5px; 
}

.logo-divider { 
    margin: 0 12px; 
    color: #3b82f6; 
    font-size: 18px; 
}

/* 메뉴 스타일 */
nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}
nav a:hover, nav a.active { 
    color: #3b82f6; 
}

/* 3. 메인 히어로 섹션 (Hero) */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1.2s ease-in-out;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-tag { font-size: 13px; color: #3b82f6; font-weight: 600; margin-bottom: 25px; letter-spacing: 4px; text-transform: uppercase; }
.hero-title { font-size: 48px; line-height: 1.25; font-weight: 800; margin-bottom: 30px; letter-spacing: -1.5px; }
.highlight { color: #3b82f6; }

/* 4. 설명글 및 브랜드 강조 (체크하신 부분 강조) */
.hero-description { font-size: 18px; color: #94a3b8; margin-bottom: 50px; font-weight: 300; }

.brand-bold { 
    font-weight: 900; /* 가장 두꺼운 굵기로 강조 */
    color: #ffffff; 
    border-bottom: 2px solid #3b82f6; /* 강조 라인 추가 */
    padding-bottom: 1px;
}

/* 버튼 스타일 */
.hero-buttons { display: flex; gap: 15px; justify-content: center; }
.btn { padding: 16px 40px; border-radius: 4px; font-size: 15px; font-weight: 600; text-decoration: none; transition: 0.3s; }
.btn-primary { background-color: #3b82f6; color: #fff; border: 1px solid #3b82f6; }
.btn-primary:hover { background-color: #2563eb; transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: #cbd5e1; border: 1px solid #334155; }
.btn-secondary:hover { border-color: #3b82f6; color: #fff; }

/* 5. 서브 페이지 공통 스타일 (WORKS 등) */
.sub-page-header {
    padding: 180px 0 100px;
    background-color: #0f172a;
    text-align: center;
}
.sub-page-header h2 { font-size: 40px; font-weight: 800; letter-spacing: 2px; color: #3b82f6; }
.sub-page-header p { color: #94a3b8; margin-top: 15px; font-size: 18px; }

/* 포트폴리오 그리드 레이아웃 */
.works-grid-container { padding: 80px 40px; background-color: #0f172a; }
.grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.grid-item { background: #1e293b; border-radius: 12px; overflow: hidden; transition: 0.3s; }
.grid-item:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.img-box { height: 300px; overflow: hidden; }
.img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.grid-item:hover .img-box img { transform: scale(1.1); }

.text-box { padding: 25px; }
.category { color: #3b82f6; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.text-box h3 { font-size: 20px; margin: 10px 0; color: #f1f5f9; }
.text-box p { color: #94a3b8; font-size: 14px; }
