/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 💡 기본 라이트 테마 색상 세트 */
:root {
  --bg-color: #f0f4f8;
  --text-color: #222;
  --header-color: #222;
  --h1-color: black;
  --footer-color: #f5f5f5;
  --border-top: 1px solid #ddd;
  --card-bg: #ffffff;
  --card-border: hsl(0, 0%, 80%);
  --button-bg: #3b82f6;
  --button-text: #ffffff;
  --color-gray: #dedcdc;
  --color-orange: #ec9006;
  --a-color: blue;
  --background-color-section: #eef8ff;
  --border-section: 1px solid #b6dbff;

}

/* 🌙 다크 테마 색상 세트 */
body.dark-mode {
  --bg-color: #1e1e1e;
  --text-color: #f0f0f0;
  --header-color: #031a9c;
  --h1-color: #f0f0f0;
  --footer-color: #031a9c;
  --border-top: 1px solid #0580fb;
  --card-bg: #2c2c2c;
  --card-border: #444;
  --button-bg: #60a5fa;
  --button-text: #000000;
  --color-gray: #787878;
  --a-color: rgb(3, 192, 110);
  --background-color-section: #353535;
  --border-section: 1px solid #666767;
}

a {
  color: var(--a-color);
}

.btn {
  background-color: var(--button-bg);
  color: var(--button-text);
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 1em;
}

#darkModeToggle {
  position: fixed;
  top: 120px;
  right: 50px;
  z-index: 1000;
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  cursor: pointer;
}

 /* 플로팅 버튼 스타일 */
 .floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-buttons button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background-color: #ffffffcc;
  color: #333;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.3s ease;

  /* 아이콘 중앙 정렬 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* 혹시라도 내부 여백 제거 */
}


.floating-buttons button:hover {
  background-color: #ddd;
}

/* 다크 모드 스타일 */
body.dark-mode {
  background-color: #121212;
  color: #eeeeee;
}
body.dark-mode .floating-buttons button {
  background-color: #333333cc;
  color: #ffffff;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #d1f0fb;
  color: #333;
  line-height: 1.6;
  padding-top: 170px;
  padding-bottom: 30px;
  background-image: url("/images/back2.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  font-size: 16px; /* 또는 기본 글자 크기 */
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.2);
  z-index: -1;
}



header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-top {
  background-color: #22208e;
  color: #ecf0f1;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
}

.header-bottom {
  background-color: #039aa5;
  font-size: 0.9rem;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 35px;
}

nav {
  display: flex;
  gap: 10px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #e15f01;
}

nav a.active {
  color: #e15f01;
  font-weight: 700;
  border-bottom: 3px solid #f6771d;
}

main {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0px 0px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

main {
  margin-top: 0; /* 기본값 */
}

@media (max-width: 768px) {
  main {
    margin-top: 95px; /* header 높이에 맞게 조정 */
  }
}


main ul {
  padding-left: 0;
  list-style-position: inside;
  margin-bottom: 8px;
}

main img, main iframe {
  display: block;
  margin: 30px auto;
  max-width: 80%;
  width: 80%;
  border-radius: 12px;
}

footer {
  /*position: fixed;*/
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #22208e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.welcome {
  text-align: center;
  background-color: #ffffffcc; /* 약간 투명한 흰색 배경 */
  padding: 40px 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.welcome h2 {
  font-size: 1.3rem;
  color: #22208e; /* 포인트 네이비 */
  margin-bottom: 20px;
}

.welcome p {
  font-size: 1rem;
  color: #444;
}

.hero {
  text-align: center;
  padding: 40px 20px 40px;
  background: linear-gradient(to bottom right, #eaf3ff, #ffffff);
  border-radius: 16px;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #22208e;
}

.hero h2 {
  font-size: 1.3rem;
  color: #f6771d;
  margin-bottom: 12px;
}

.hero h3 {
  font-size: 1.1rem;
  color: #22208e; /* 포인트 네이비 */
  margin-bottom: 12px;
}


.hero p {
  font-size: 1rem;
  margin-bottom: 10px;
}

.button-home {
  background-color: #f6771d;
  color: #fff;
  padding: 5px 15px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 0px;
}

.button-home:hover {
  background-color: #d45e0f;
}

.vision {
  background-color: #ffffff;
  padding: 40px 30px;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;

}

.vision h2 {
  font-size: 1.3rem;
  color: #22208e; /* 포인트 네이비 */
  margin-bottom: 12px;
}

.summary {
  background-color: #ffffffcc;
  padding: 40px 30px;
  border-radius: 12px;
  margin: 40px auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  /*max-width: 600px;         /* ✅ hero처럼 좁은 폭 설정 */
  width: 90%;               /* ✅ 좌우 여백 유지 */
  text-align: center;
  margin-bottom: 40px;
}

.service-detail {
  text-align: center;
}

.service-detail ul {
  display: inline-block;  /* 중앙 정렬된 블록 */
  text-align: left;       /* 항목은 왼쪽 정렬 */
  padding-left: 20px;     /* 보기 좋은 들여쓰기 */
  margin: 0 auto 20px;    /* 중앙 배치 + 아래 여백 */
}

.category-list {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
}

.service-page, .service-detail {
  text-align: center;
  background-color: #ffffff; /* 약간 투명한 흰색 배경 */
  padding: 40px 10px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.service-page h2, .service-detail h2 {
  font-size: 1.3rem;
  color: #22208e;
  margin-bottom: 12px;
}

.service-page h3, .service-detail h3  {
  font-size: 1.1rem;
  color: #f6771d;
  margin-bottom: 12px;
}

.service-page p, .service-detail p {
  font-size: 1rem;
  color: #272727;
}


.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 480px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr); /* 모바일에서도 2개 */
  }
}

.service-card {
  background: rgb(210, 237, 249);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;

}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
  font-size: 1rem;
  color: #22208e;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.8rem;
  color: #444;
}

.cta {
  text-align: center;
  background-color: #ffffffcc;
  color: rgb(2, 17, 184);
  padding: 40px 30px;
  border-radius: 12px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.cta h2 {
  font-size: 1.3rem;
  color: #22208e; /* 포인트 네이비 */
  margin-bottom: 12px;
}

.cta p {
  font-size: 1rem;
  margin-bottom: 20px;
}

#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #f6771d;
  color: white;
  padding: 5px 15px;
  border-radius: 50%;
  font-size: 16px;
  border: none;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
}

#scrollToTopBtn:hover {
  background-color: #3a3abf;
}

.button-anchor {
  display: inline-block;
  padding: 5px 15px;
  background-color: #1abc9c;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  text-decoration: none;
  margin-top: 0px;
  transition: background-color 0.3s;
}

.button-anchor:hover {
  background-color: #17a589;
}

.how-it-works {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.how-it-works h2 {
  font-size: 1.3rem;
  color: #22208e;
  margin-bottom: 20px;
}

.how-it-works ol {
  list-style: none;
  padding: 0;
  max-width: 500px;
  margin: auto;
  text-align: left;
}

.how-it-works li {
  font-size: 1rem;
  color: #444;
  padding: 12px 0;
  border-bottom: 1px dashed #ccc;
}

.how-it-works li:last-child {
  border-bottom: none;
}

.how-it-works .step {
  font-size: 1.2rem;
  color: #444;
  padding: 16px 0;
  font-weight: 500;
  position: relative;
}

.how-it-works .arrow {
  font-size: 2.2rem;
  color: #4e51cd;
  margin: 10px 0;
  animation: bounce 1.2s infinite;
}

/* (선택) 부드러운 화살표 애니메이션 */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.testimonials {
  background-color: #ffffffcc;
  padding: 50px 30px;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.testimonials h2 {
  font-size: 1.3rem;
  color: #22208e;
  margin-bottom: 30px;
}

.testimonials blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: #444;
  margin: 20px auto;
  width : 90%;
  position: relative;
  padding: 20px 20px 20px 40px;
  border-left: 4px solid #f6771d;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.quick-contact {
  text-align: center;
  background-color: #fff;
  padding: 50px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin: 60px 0;
}

.quick-contact h2 {
  font-size: 1.3rem;
  color: #22208e;
  margin-bottom: 16px;
}

.quick-contact p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 20px;
}

.about-founder {
  background-color: #ffffffcc;
  padding: 50px 30px;
  border-radius: 12px;
  margin: 0px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
}

.about-founder h2 {
  font-size: 1.3rem;
  color: #22208e;
  margin-bottom: 20px;
}

.about-founder p {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  /*max-width: 600px;*/
  width: 90%;               /* ✅ 좌우 여백 유지 */
  margin: auto;
}

.about-intro, .about-vision {
  background-color: #ffffffcc;
  padding: 40px 30px;
  border-radius: 12px;
  margin: 0px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
}

.about-intro h2, .about-vision h2 {
  font-size: 1.3rem;
  color: #22208e;
  margin-bottom: 16px;
}

.about-intro p, .about-vision p {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  /*max-width: 600px;*/
  width: 90%;               /* ✅ 좌우 여백 유지 */
  margin: auto;
}



.service-detail ul {
  list-style: disc;
  padding-left: 1rem;
  margin: 20px auto;
  text-align: left;         /* ✅ 텍스트만 좌측 정렬 */
  max-width: 700px;         /* ✅ 너무 넓어지지 않도록 제한 */
  font-size: 1.1rem !important; /* 기존 1.5rem → 1.1rem (약 17~18px) */
}

.service-detail li {
  font-size: 0.9rem;
  font-weight: bold;
  color: #363636;
  margin-bottom: 10px;
  line-height: 1.4;
}

.service-detail img {
  max-width: 550px;
  width: 90%;
  height: auto;
  display: block;
  margin: 10px auto;
}
 
.project-page {
  background-color: #ffffff;
  padding: 40px 10px;
  margin: 0px auto;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.project-page h2 {
  font-size: 1.3rem;
  color: #22208e; /* 포인트 네이비 */
  margin-bottom: 20px;
}

.project-page h3 {
  font-size: 1.2rem;
  color: #22208e; /* 포인트 네이비 */
  margin-bottom: 20px;
}

.project-page p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 40px;
}


.contact-page {
  background-color: #ffffff;
  padding: 40px 30px;
  margin: 0px auto;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.contact-page h2 {
  font-size: 1.3rem;
  color: #22208e; /* 포인트 네이비 */
  margin-bottom: 20px;
}

.contact-page p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 40px;
}


.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 10px;
}

@media (max-width: 480px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr); /* 모바일에서도 2개 */
  }
}


.project-card {
  background: rgb(210, 237, 249);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.2s;
  font-size: 1rem;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card ul {
  list-style: disc;
  padding-left: 0.8rem;
  margin: 20px auto;
  margin-left: 15px;
  text-align: left;         /* ✅ 텍스트만 좌측 정렬 */
  max-width: 600px;         /* ✅ 너무 넓어지지 않도록 제한 */
  font-size: 0.8rem;
}

.service-card ul {
  list-style: disc;
  padding-left: 0.8rem;
  margin: 20px auto;
  margin-left: 15px;
  text-align: left;         /* ✅ 텍스트만 좌측 정렬 */
  max-width: 600px;         /* ✅ 너무 넓어지지 않도록 제한 */
  font-size: 0.8rem;
}


.project-card img {
  width: 100%;
  /*max-height: 180px;*/
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.project-card h3 {
  font-size: 1rem;
  color: #22208e;
  margin-bottom: 12px;
}

.project-card p {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 15px;
}

a.button-home {
  display: inline-block;                /* ✅ 블록처럼 취급해서 여백 적용 */
  background-color: #f6771d;
  color: white;
  padding: 5px 15px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;                /* ✅ 밑줄 제거 */
  margin-top: 0px;                     /* ✅ 윗줄과 간격 */
  transition: background-color 0.3s;
}

a.button-home:hover {
  background-color: #d45e0f;
}


.contact-info {
  margin: 30px 0;
  font-size: 1.1rem;
  color: #333;
}

.contact-info a {
  color: #f6771d;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

#quoteForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 90%;
  margin: 30px auto;
}

#quoteForm input,
#quoteForm textarea {
  padding: 12px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: 'Segoe UI', sans-serif;
}

#quoteForm textarea {
  height: 140px;
  resize: vertical;
}

.map-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

#map {
  width: 100%;
  height: 600px; /* 또는 더 크게 */
  min-height: 400px;
  border-radius: 8px;
  /*box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);*/
}

.slim-text {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.heart {
  font-size: 1.2rem;
  color: #cc3aa5;
}
.category-list {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  font-size: 1rem;
}
.category-item {
  margin: 1rem 0;
}
.emoji {
  font-size: 1.3rem;
  margin-right: 0.5rem;
}
@media (max-width: 550px) {
  body {
    padding: 0.7rem;
  }
  .slim-text {
    font-size: 1rem;
  }
}