/* Reset */

html {
  font-size: 10px;
  scroll-behavior: smooth;
}

body,
h1,
h2,
p,
a {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Pretendard", sans-serif;
}

body {
  color: #fff;
  background: #000;
  font-size: 10px; /* 기본 폰트 크기 */
}

img {
  width: 100%;
  height: auto;
}

.red {
  color: #e63946;
}
.br {
  display: none;
}
.tablet-br {
  display: none;
}

section {
  padding: 8rem 8rem !important;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    /* 반투명 검정색 오버레이 */ url("./images/메인\ 메인.jpg") no-repeat
      center center/cover; /* 배경 이미지 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.navbar {
  position: absolute;
  top: 30px; /* 3rem -> 30px */
  width: 90%;
  height: 40px; /* 4rem -> 40px */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo-box {
  font-size: 14px; /* 1.4rem -> 14px */
  font-weight: bold;
}

.navbar .btn {
  background: white;
  padding: 8px 26px; /* 0.8rem 2.6rem -> 8px 26px */
  border-radius: 100px; /* 10rem -> 100px */
  color: black;
  text-decoration: none;
  font-size: 14px; /* 1.4rem -> 14px */
}

.logo-box {
  height: auto;
}

.logo {
  width: auto;
  height: 100%;
  top: 0px; /* 0rem -> 0px */
  position: absolute;
  filter: brightness(0) invert(1);
}

.hero-content h1 {
  font-size: 4.2rem;
  line-height: 1.4;
  margin-bottom: 2rem;
}

.scroll-down {
  position: absolute;
  bottom: 3rem;
}

.scroll-down a {
  font-size: 2rem;
  color: white;
  text-decoration: none;
  filter: invert(1); /* 흰색 아이콘을 빨간 배경에 적합하게 변경 */
}

.scroll-down img {
  width: 3rem;
}

/* Content Section */
.content-section {
  background-color: #fff;
  color: #000;
}

.content-text {
  text-align: center;
  font-size: 2.7rem;
  padding: 12rem 0;
}

.content-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  border-top: 0.01rem solid rgb(228, 228, 228);
  padding-top: 15rem;
  gap: 2rem;
  max-width: 130rem;
  height: 60rem;
  margin: 0 auto;
}

.text-content {
  flex: 1;
}
.text-content h1 {
  padding: 1rem 0;
  color: #e63946;
}
.text-content h2 {
  font-size: 4.2rem;
  line-height: 150%;
  margin-bottom: 1.5rem;
  color: #000;
}

.text-content p {
  font-size: 1.5rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-p {
  opacity: 0.9;
}

.text-content .highlight {
  color: #e63946;
  font-weight: bold;
}

.image-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.image-content img {
  position: absolute;
}

#image-content1 {
  width: 34rem;
  top: 15rem;
  right: 35rem;
}
#image-content2 {
  width: 30rem;
  top: 30rem;
  right: 0rem;
}
#image-content3 {
  display: none;
}

/* Features Section */
.features-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12rem 2rem;
  background-color: #f9f9f9;
  color: #000;
  text-align: center;
}

.features-container {
  max-width: 130rem;
}

.features-container h2 {
  font-size: 3rem;
  line-height: 140%;
  margin-bottom: 4rem;
  color: #000;
}

.features-grid {
  display: flex;
  justify-items: space-between;
  align-items: center;
}

.feature-item {
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  max-width: 30rem;
}

.feature-item img {
  width: 6rem;
  margin-bottom: 1.5rem;
}

.feature-item h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.feature-item p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #555;
}

.next-icon {
  width: 2.5rem !important;
}

/* Info Section */
.info-section {
  padding: 5rem 2rem;
  background-color: #fff;
  color: #000;
}

.info-container {
  max-width: 130rem;
  margin: 0 auto;
  height: 90rem;
}

.info-header {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid #eeeeee;
  padding: 6rem 0;
}

.info-header .level {
  font-size: 1.4rem;
  color: #e63946;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.level {
  padding: 1rem 0;
}

.info-header h2 {
  font-size: 4.2rem;
  font-weight: bold;
  text-align: left;
}

.info-details {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 3rem;
  float: right;
}

.info-item {
  text-align: center;
  padding: 2.6rem 0;
}

.info-item h3 {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #000;
}

.info-item p {
  font-size: 1.5rem;
  color: #555;
  line-height: 1.6;
}
.info-header p,
.info-header p,
.info-item p,
.info-item h3 {
  text-align: left;
}
.info-image {
  position: relative;
}
.info-image img {
  max-width: 100%;
  border-radius: 0.5rem;
}
.info-image-plus {
  font-weight: bold;
  position: absolute;
  width: 2.2rem;
  left: 0rem;
  top: 4rem;
}

/* Footer Section */
.footer-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("./images/촬영\ 메인.jpg") no-repeat center center / cover;
  padding: 5rem 2rem;
  color: #fff;
  text-align: center;
  height: 30rem;
}

.footer-container {
  max-width: 130rem;
  height: 100%;
  margin: 0 auto;
}

.footer-content {
  height: 100%;
  align-content: center;
}

.footer-content h2 {
  font-size: 3rem;
  margin-bottom: 10rem;
  font-weight: bold;
}

.contact-info {
  display: flex;
  justify-content: center;
  align-content: center;
  gap: 20rem;
  margin-bottom: 6rem;
}

.contact-item p {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #ccc;
  text-align: left;
  font-weight: bold;
}

.contact-item a {
  font-size: 1.8rem;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: bold;
}

.contact-item a:hover {
  color: #e63946;
}
/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 50px;
  right: 60px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.floating-button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.floating-button img {
  width: 20px;
  height: 20px;
}

.floating-button.phone-button {
  background-color: #e63946;
}

.floating-button.phone-button img {
  filter: invert(1); /* 흰색 아이콘을 빨간 배경에 적합하게 변경 */
}

.floating-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* 화면 크기에 따른 디자인 */
@media (max-width: 1600px) {
  html {
    font-size: 9px;
  }
}

@media (max-width: 1312px) {
  .features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 2열 */
    grid-template-rows: repeat(2, auto); /* 3행 (자동 높이) */
  }

  .content-container {
    height: 40rem;
  }
  .text-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #image-content3 {
    width: 57rem;
    height: 34rem !important;
    display: block;
    object-fit: cover; /* 비율 유지하면서 잘리기 */
    object-position: center; /* 이미지를 중앙 기준으로 자르기 */
  }
  .image-content {
    display: none;
  }
  .features-container {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  #image-content3 {
    width: 40rem;
  }
}

@media (max-width: 1005px) {
  html {
    font-size: 9px;
  }
  #image-content3 {
    width: 35rem;
    height: 30rem !important;
  }
  .text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  .content-section {
    height: 120rem;
  }
  .content-container {
    height: 73rem !important;
  }
  #image-content3 {
    position: absolute;
    width: 60rem;
    right: 0rem;
    bottom: 6rem;
    object-fit: none; /* 비율 유지하면서 잘리기 */
    object-position: center; /* 이미지를 중앙 기준으로 자르기 */
  }
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2열 */
    grid-template-rows: repeat(2, auto); /* 3행 (자동 높이) */
  }
}
@media (max-width: 900px) {
  .info-image-plus {
    display: none;
  }
  .tablet-br {
    display: block;
  }
}
@media (max-width: 700px) {
  #image-content3 {
    width: 100%;
    height: auto;
    bottom: 0rem;
  }
}

@media (max-width: 650px) {
  html {
    font-size: 8px;
  }
  section {
    padding: 4rem 4rem !important;
  }
  section p {
    font-size: 1.8rem !important;
  }
  .content-section {
    height: 130rem;
  }
  .floating-buttons {
    right: 30px;
  }
}

@media (max-width: 550px) {
  .content-container {
    padding-top: 10rem;
  }
  .features-section {
    padding: 8rem 4rem !important;
  }
  .features-container h2 {
    text-align: left;
  }
  .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2열 */
    grid-template-rows: repeat(1, auto); /* 3행 (자동 높이) */
  }
  #image-content3 {
    position: relative;
  }
  .info-details {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .contact-info {
    gap: 10rem;
  }
  .br {
    display: block;
  }
}

/* 모바일 화면 */
@media (max-width: 520px) {
  .hero h1 {
    font-size: 3.6rem !important;
  }
  #image-content3 {
    padding-top: 2rem;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 7px;
  }
  .hero h1 {
    font-size: 3.2rem !important;
  }
}
@media (max-width: 400px) {
  html {
    font-size: 6.5px;
  }
}
