@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap");

:root {
  --brand-primary: #0d6efd;
  --brand-accent: #ff8c00;
  --brand-dark: #212529;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

a {
  text-decoration: none;
}

/* ----------------------------------------------------------------
   Header & Navigation
---------------------------------------------------------------- */
#header-wrap {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 9999 !important; /* 헤더는 무조건 최상위 */
}

.logo {
    width: 144px;
    height: auto;
}

@media screen and (max-width: 768px) {
    .logo {
        width: 101px;
        height: auto;
    }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  padding-top: 25px;
  padding-bottom: 25px;
  transition: all 0.4s ease;
  background: transparent !important;
  box-shadow: none !important;
}

.navbar-toggler {
  position: relative;
  z-index: 10000 !important; /* 버튼은 헤더보다도 위 */
  background-color: rgba(0, 0, 0, 0.6) !important; /* 진한 반투명 배경 */
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  padding: 0.5rem;
  margin-right: 0px;
}

.navbar-toggler:focus,
.navbar-toggler:hover {
  background-color: #000 !important;
  outline: none;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* 모바일 메뉴 열렸을 때 배경 */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 20px;
    margin-top: 10px;
    border-radius: 5px;
  }
}

.nav-link {
  font-weight: 600;
  margin: 0 15px;
  color: #ffffff !important;
  position: relative;
  transition: color 0.3s ease;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.nav-link:hover {
  color: #fff !important;
}
.nav-link.active {
  color: var(--brand-accent) !important;
}

.navbar.scrolled {
  background: rgba(20, 20, 20, 0.7) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ----------------------------------------------------------------
   Common Styles
---------------------------------------------------------------- */
/* 페이지 헤더 공통 */
.page-header {
  background-size: cover !important;
  padding: 100px 0;
  color: #fff;
  margin-bottom: 0;
  position: relative;
}

/* Main Visual */
#heroCarousel {
  padding: 0 !important;
}
.hero-carousel-item {
  height: 100vh;
  min-height: 600px;
  position: relative;
  background-color: #000;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 2;
}
.carousel-caption-custom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 85%;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

/* Card & Utility */
.card {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.text-accent {
  color: var(--brand-accent) !important;
}
.hover-up {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-up:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Footer */
footer {
  background-color: #1a1d20 !important;
}
.footer-link {
  color: rgba(255, 255, 255, 0.5) !important;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-link:hover {
  color: #fff !important;
}

/* ----------------------------------------------------------------
   [NEW] About 페이지 Clean Design System
---------------------------------------------------------------- */

/* 1. 충돌 방지 레이어 (필수) */
.safe-layer {
  position: relative;
  z-index: 1 !important; /* 헤더보다 무조건 아래 */
}

/* 2. 컬러 팔레트 */
.bg-soft-blue {
  background-color: #eef4ff;
}
.bg-soft-purple {
  background-color: #f3f0ff;
}
.text-purple {
  color: #6610f2 !important;
}

/* 3. 디자인 요소 (원형 장식) */
.deco-circle-lg {
  width: 100px;
  height: 100px;
  opacity: 0.1;
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
  border-radius: 50%;
}

.icon-circle-md {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background-color: #fff;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

/* 4. 기능 박스 (Feature Box) */
.feature-box {
  padding: 2rem;
  height: 100%;
  text-align: center;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.feature-box:hover {
  transform: translateY(-5px);
}

.portfolio-item {
  display: none; /* 기본은 숨김 */
}
.portfolio-item.show {
  display: flex; /* Bootstrap col-*은 flex 아이템이라 flex로 표시 */
}

.portfolio-item.rentacar { display: flex; }