
  .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: white;
    cursor: pointer;
  }
  
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    margin-bottom: 1px;
}
html {
    scroll-behavior: smooth;
}
.body {
    background-color: #000 !important;
}
/* 헤더 영역을 뷰포트 가득 + 중앙 정렬 스택으로 */
header {
  position: relative !important;
  width: 100vw !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  display: grid;                 /* 중앙 정렬 */
  place-items: center;           /* 가로/세로 중앙 */
  isolation: isolate;            /* 독립 스태킹 컨텍스트 */
}

/* ===== FORCE FULL-WIDTH CENTERED LOGO OVERLAY ===== */

/* 헤더는 캔버스(그리드) */
header {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 100vw !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

/* 배경은 뒤에서 꽉 채움 */
header .hero-bg,
header .hero-bg *,
header > video,
header > img.bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  z-index: 0 !important;
}

/* ★ 로고 컨테이너: 화면 정중앙 고정 + 가로 100vw */
header .hero-logo {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important; /* 정확한 중앙 */
  width: 100vw !important;      /* 화면 가로 전체 */
  max-width: 100vw !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;     /* 부모 .container 등의 제약 무력화 */
  z-index: 2 !important;         /* 배경 위, 텍스트와 같은 레벨 */
  pointer-events: none;          /* 필요 시 클릭 통과 */
}

/* ★ 로고 이미지: 가로 기준 100vw (세로 자동) */
header .hero-logo img {
  display: block !important;
  width: 100vw !important;       /* 무조건 화면 가로 꽉 */
  max-width: 100vw !important;
  height: auto !important;       /* 비율 유지 */
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
}

/* 세로가 더 긴 화면에선 높이 기준으로 자동 전환 */
@media (max-aspect-ratio: 16/9) {
  header .hero-logo img { width: auto !important; height: 90vh !important; }
}

/* 헤더 텍스트가 가려지면 필요 시 위로 */
.header-text { position: relative; z-index: 3 !important; }



.header-text {
  position: relative;
  z-index: 2;
  padding: 20px;
  color: white;
}

.header-text h1 {
  font-size: 20px;
  color: white;
}
.header-text h2 {
  font-size: 30px;
  color: #5e78ed;
}
.header-text h3 {
  font-size: 14px;
  color: #5e78ed;
  margin-top: 10px;
}

/* 🔹 Overlay 추가 */
#header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 반투명 검정 오버레이 */
    z-index: 1;
}
  
.container-header {
    background-color: transparent;
    z-index: 3;
}

.main-nav ul {
    display: flex;
    gap: 20px;
    padding-left: 10px;
}
.main-nav ul li {
    list-style: none;
}
.main-nav ul li a {
    color: #f9f5f5;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    height: 100px;
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px); /* 선택사항: 배경 흐림 효과 */
}

nav .fas {
    display: none;
}

nav ul {
    list-style: none;
    display: flex; /* Ensures the list items are laid out horizontally */
}

nav ul li {
    display: inline-block;
    margin: 10px 20px;
}

nav ul li a {
    margin: 0 10px;
    color: hsl(180, 29%, 97%);
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: hsl(0, 95%, 50%);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: width 0.5s ease; /* Added easing for smooth transition */
}

nav ul li a:hover::after {
    width: 100%;
}

.header-text {
    font-size: 30px;
    z-index: 5;
    color: #fff; /* 텍스트가 배경에서 잘 보이도록 */
}

.header-text h1 {
    font-size: 40px;
    margin-top: 150px;
    color: white;
}
.header-text h3 {
    font-size: 20px;
    margin-top: 5px;
    color: white;
}
.header-text h4 {
    font-size: 15px;
    margin-top: 5px;
    color: white;
}

.header-text h1 span {
    margin-top: 200px;
}

/* -----------about--------------- */
#about{
    padding: 40px 0;
    color: #ababab;
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 35%;
    margin-top: 50;
}
.about-col-1 img{
    width: 100%;
    border-radius: 15px;
}
.about-col-2{
    flex-basis: 60%;
}
.about-col-2 h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #168ac0;
}

.sub-title{
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}
.sub-title h1{
    justify-content: center; /* 수평 가운데 정렬 */
}

.tab-titles{
    display: flex;
    margin: 20px 0 40px;
}
.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}
.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: #168ac0;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after{
    width: 50%;
}

.tab-contents ul li{
    list-style: none;
    margin: 10px 0;
}
.tab-contents ul li span{
    color: #2f97bd;
    font-size: 14px;
}
.tab-contents{
    display: none;
}
.tab-contents.active-tab{
    display: block;
}


/* ----------------card------------------*/

.container {
    width: 100%;
    max-width: 1440px;
    padding: 0 40px;
    margin: 0 auto;
    box-sizing: border-box;
  }  

.card__container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    justify-items: center;
    align-items: stretch;
    padding: 50px 20px;
    width: 100%;
    box-sizing: border-box;
    }

.card {
    width: 100%;
    max-width: 320px;
    height: 450px; /* 서비스 카드 높이와 일치시키기 */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    position: relative;
    width: 300px;
    margin: 20px;
    flex-shrink: 0; /* Prevents cards from shrinking */
}

.card .face {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
    backface-visibility: hidden;
    transition: transform 0.6s ease;
}
.card .front {
    transform: perspective(600px) rotateY(0deg);
    box-shadow: 0 5px 10px #000;
}

.card .front img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .front h3 {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 45px;
    line-height: 45px;
    color: #e10a0a;
    background: rgba(0,0,0,.4);
    text-align: center;
}

.card .back {
    transform: perspective(600px) rotateY(180deg);
    background: rgb(3, 35, 54);
    padding: 15px;
    color: #f3f3f3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 5px 10px #000;
}

.card .back .link,
.card .back .popup {
    width: 100%;              /* 카드 너비에 맞춤 */
    max-width: 100%;          /* 오버플로우 방지 */
    box-sizing: border-box;
    overflow-x: hidden;
    margin: 0 auto;
}

.popup {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
  }

.card .back .link video {
    width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 10px;
}

.card .front, .card .back {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
}

.card .front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.card .back h3 {
    font-size: 22px;
    margin-top: 20px;
    letter-spacing: 1px;
}

.card .back p {
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* Hover Card Effect */
.card:hover {
    transform: translateY(-5px);
}
  
.card:hover .front {
    transform: perspective(600px) rotateY(180deg);
}

.card:hover .back {
    transform: perspective(600px) rotateY(360deg);
    
}

.card__button {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1ab1c5;
    margin-top: 10px;
    display: inline-block;
  }
  
.card__button:hover {
    text-decoration: underline;
  }
  

/* ----------------catalogue------------- */

#catalogue{
    padding: 40 40px;
}
.container{
    display: grid;
    place-items: center;
    margin-inline: 1.5rem;
    padding-block: 5rem;
 }
.catalogue-list{
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 한 줄에 4개 */
    gap: 40px;
    margin-top: 50px;
    padding: 0 20px;
}
/* catalogue 항목도 .card 스타일을 적용 */
.catalogue-list div {
    all: unset;  /* 기존 스타일 초기화 */
    composes: card; /* card 클래스 스타일 상속 – SCSS 사용 시 */
    /* 또는 아래 직접 복사 */
    width: 100%;
    max-width: 320px;
    height: 450px;
    background: #111;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    font-size: 14px;
    font-weight: 400;
    text-align: center;

  }
.catalogue-list div i{
    font-size: 40px;
    margin-bottom: 20px;
}
.catalogue-list div a{
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    margin-top: 20px;
    display: inline-block;
}

/* ----------------services------------- */
#services{
    padding: 40px 0;
}

.services-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px;
    margin-top: 50px;
    padding: 40 40px 0;
}
.services-list div{
    background: #262626;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
}
.services-list div i{
    font-size: 50px;
    margin-bottom: 30px;
}
.services-list div h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
    color: hsl(0, 74%, 45%);
}
.services-list div a{
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}
.services-list div:hover{
    background: #18a2c1;
    transform: translateY(-10px);
}

/* ----------------dispatch------------- */

#dispatch {
    padding: 10px 10px; /* 상단 패딩 넉넉히 확보 */
}
.container {
    padding: 10px 10px;
}

.container h2 {
    color: #e10a0a;
}
.container h3 {
    margin-bottom: 50px;
    color: #e10a0a;
}
  
  .dispatch-card-list {
    display: grid;
    grid-template-columns: repeat(7, minmax(180px, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    margin-left: 120px;
    overflow: visible;
}
  
.dispatch-card-list div {
    padding-bottom: 30px; /* 아래쪽 공간 확보 */
    border-radius: 15px;
    margin-top: 50px;
}
.dispatch-card-list div a{
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    margin-top: 20px;
    display: inline-block;
}
.dispatch-card-list div i{
    font-size: 40px;
    margin-bottom: 20px;
}
.card_article {
    width: 100%; /* 자동으로 셀 크기에 맞춤 */
    max-width: none; /* 고정 폭 제거 */
    min-height: 220px;
}
.card_article img {
    width: 100%;
    border-radius: 15px;
}
.dispatch-card div:hover{
    background: #18a2c1;
    transform: translateY(-10px);
}

/* -------flipcard----------- */

/* Flipcard container */
#development {
    padding: 40px 20px;
    max-width: 1440px;
    margin: 0 auto;
  }

  .flipcard-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    padding: 40px 20px;
  }
  
  .flipcard-box {
    width: 300px;
    height: 420px;
    perspective: 1000px;
    margin: 0 auto;
    flex-shrink: 0;
  }
  
.flipcard-card {
    position: relative;
    width: 50px;
    height: 500px;
    margin: 20px;
    perspective: 1000px;
}

.flipcard-inner,
.flipcard-front,
.flipcard-back {
  width: 100%;
  height: 100%;
}

.flipcard-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}
  
.flipcard-box:hover .flipcard-inner {   
    transform: rotateY(180deg);
}
  
.flipcard-front,
.flipcard-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
    overflow: hidden;
  }

.flipcard-front {
    background-color: hsl(260, 100%, 1%);
    transform: rotateY(0deg);
}

.flipcard-front img {
    width: 90%;
    height: auto;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
}

.flipcard-back {
    background-color: #603bb7;
    color: white;
    transform: rotateY(180deg);
}


.flipcard-front img {
    width: 90%;
    height: auto;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
}
  
/* 뒷면 */
.flipcard-back {
    background-color: #603bb7;
    color: white;
    transform: rotateY(180deg);
}
  
/* 텍스트 스타일 */
.flipcard-back h3 {
    font-size: 22px;
    margin-bottom: 10px;
}
  
  .flipcard-back p {
    font-size: 14px;
    line-height: 1.4;
}
  
  .flipcard-back a {
    color: #1ab1c5;
    text-decoration: none;
    margin-top: 10px;
}

/* Hover flipCard Effect */
.card:hover {
    transform: translateY(-5px);
}

.flipcard:hover .front {
    transform: perspective(600px) rotateY(180deg);
}

.flipcard:hover .back {
    transform: perspective(600px) rotateY(360deg);
}
/* flipcard-article */

#flipcard-article {
    width: 100%;
    margin-top: 60px;
    padding: 80px 80px;
    background: #111;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    box-sizing: border-box;
  }

#flipcard-article .article-section {
margin-bottom: 40px;
}

#flipcard-article h2 span {
display: block;
font-size: 1.4rem;
font-weight: bold;
color: hsl(196, 71%, 60%);
border-left: 4px solid hsl(196, 71%, 60%);
padding-left: 12px;
margin-bottom: 10px;
}

#flipcard-article a {
margin-bottom: 40px;
}


#flipcard-article .article-title {
display: block;
font-size: 1.4rem;
font-weight: bold;
margin-bottom: 10px;
color: hsl(196, 71%, 60%);
border-left: 4px solid hsl(196, 71%, 60%);
padding-left: 12px;
}

/* ---------invest-------- */

#invest {
    padding: 80px 40px;
    margin: 0 auto;
    max-width: 1440px;

    clear: both;
    width: 100%;
    max-width: 1440px;
    margin: 80px auto;
    padding: 80px 40px;
    box-sizing: border-box;
  }

.contact-left{
    flex-basis: 35%;
}
.contact-right{
    flex-basis: 60%;
}
.contact-left h2 span {
    color: 30px;
}
.contact-left p i{
    color: #1ab1c5;
    margin-right: 15px;
    font-size: 25px;
}
.btn.btn2{
    display: inline-block;
    background: #1788b4;
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}
.contact-right form{
    width: 100%;
}
form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}

/* ---------copyright-------- */

.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    font-weight: 300;
    margin-top: 80px;
}
.copyright i{
    color: #1f97bc;
}
.copyright a{
    color: #2b80c1;
    text-decoration: none;
}
