:root {
  --bg-color: #000000;
  --card-bg: #000000;
  --gold-glow: #e2b07e;
  --gold-subtle: rgba(226, 176, 126, 0.3);
  --text-main: #ffffff;
  --text-muted: #b0b0b0;
  --border-color: #333333;
  --divider-color: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.br-mobile {
  display: none;
}

body {
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-main);
  overflow-x: hidden;
  padding-top: 5vh;
  padding-bottom: 10vh;
}

.main-card {
  width: 900px;
  max-width: 95vw;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 30px 20px 35px 20px;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  margin-top: -15rem;
  z-index: 10;
  /* Overlap with person significantly */
}

/* Subtle glowing border animation */
.main-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(45deg, transparent, var(--border-color), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.title {
  font-size: 24px;
  font-weight: 500;
  color: var(--gold-glow);
  margin-bottom: 50px;
  letter-spacing: -0.5px;
  text-shadow: 0 0 15px rgba(226, 176, 126, 0.4);
}

.content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.value-item {
  flex: 1;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Dividers between items */
.value-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: var(--divider-color);
}

.icon-box {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.icon-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--gold-glow));
  animation: glowPulse 4s infinite ease-in-out;
}

.sub-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.description {
  font-size: 18px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-muted);
  word-break: keep-all;
  font-weight: 300;
}

@keyframes glowPulse {
  0% {
    opacity: 0.8;
    filter: drop-shadow(0 0 5px var(--gold-glow));
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 0 20px var(--gold-glow));
  }

  100% {
    opacity: 0.8;
    filter: drop-shadow(0 0 5px var(--gold-glow));
  }
}

/* Background glow effect behind icons */
.icon-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--gold-subtle) 0%, transparent 70%);
  z-index: -1;
  opacity: 0.6;
  animation: glowPulse 4s infinite ease-in-out;
}

/* Hero Background Smoke Effect - Global Scope */
.hero-bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000;
  overflow: hidden;
  z-index: -1;
}

.smoke-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(80px);
  opacity: 0.6;
}

.smoke-blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 0, 0, 0.8) 0%, rgba(255, 0, 0, 0.2) 50%, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.ember-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ember {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(1px);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.person-container {
  position: relative;
  width: 100%;
  /* Same as main-card-container */
  display: flex;
  flex-direction: column;
  /* Stack text above image */
  justify-content: center;
  align-items: center;
  padding: 2rem 0 10rem 0;
  z-index: 5;
}

.hero-text-content {
  text-align: center;
  margin-bottom: 40px;
  z-index: 10;
}

.hero-main-title {
  font-family: 'Outfit', 'Noto Sans KR', sans-serif;
  font-size: 64px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -1px;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 0, 0, 0.4);
}

.hero-sub-text {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  word-break: keep-all;
}

.person-backlight {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.9) 0%, rgba(180, 0, 0, 0.5) 40%, rgba(255, 0, 0, 0) 70%);
  filter: blur(50px);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  animation: backlightPulse 5s infinite ease-in-out;
}

@keyframes backlightPulse {

  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.95);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.person-container img {
  position: relative;
  max-height: 500px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 3px rgba(255, 0, 0, 0.3));
  z-index: 2;
}

/* Responsive adjustments handled above */

@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 50px;
  }

  .value-item {
    padding: 0;
    width: 100%;
    text-align: center;
  }

  .value-item:not(:last-child)::after {
    display: none;
  }

  .main-card {
    padding: 40px 30px;
  }

  @media (max-width: 768px) {
    .br-pc {
      display: none;
    }

    .description br:not(.br-pc) {
      display: block;
    }

    .br-mobile {
      display: block;
    }
  }
}

/* Profile Section Styles */
.profile-section {
  width: 900px;
  max-width: 95vw;
  margin: 100px auto;
  z-index: 10;
  position: relative;
}

.profile-header {
  text-align: center;
  margin-bottom: 60px;
}

.profile-header-title {
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.profile-header-title span.emoji {
  font-size: 32px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.profile-header-subtext {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  word-break: keep-all;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.profile-card {
  height: 200px;
  /* Uniform height */
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  gap: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 2px solid #333333;
}

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

.profile-image-container {
  width: 150px;
  /* Uniform width */
  flex-shrink: 0;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 0.5rem;
  overflow: hidden;
}

.profile-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
  /* Attach to bottom */
}

.profile-info {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.9);
  padding: 16px 20px;
  /* Tight padding to remove excessive space */
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-name {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 10px;
  font-family: 'Noto Sans KR', sans-serif;
}

.profile-titles {
  font-size: 13.5px;
  line-height: 1.35;
  color: #333333;
  list-style: none;
  font-weight: 400;
}

.profile-titles li {
  margin-bottom: 4px;
  position: relative;
  word-break: keep-all;
}

@media (max-width: 850px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-section {
    margin: 50px auto;
  }
}

@media (max-width: 480px) {
  .profile-card {
    height: 180px;
    /* More compact height for mobile */
    flex-direction: row;
    /* Force horizontal split as requested */
  }

  .profile-image-container {
    width: 110px;
    /* Narrower image area to save space */
  }

  .profile-image-container img {
    object-position: center top;
    /* Focus on the face */
  }

  .profile-info {
    padding: 10px 12px;
  }

  .profile-name {
    font-size: 16px;
    /* Smaller name */
    margin-bottom: 5px;
  }

  .profile-titles {
    font-size: 11px;
    /* Smaller titles to fit lines */
    line-height: 1.25;
  }

  .profile-titles li {
    margin-bottom: 2px;
  }
}

/* Footer & Map Section Styles */
.footer-section {
  width: 900px;
  max-width: 95vw;
  margin: 50px auto 100px;
  z-index: 10;
  position: relative;
  text-align: center;
}

.footer-hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #333, transparent);
  margin: 40px 0;
}

.footer-title {
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 30px;
  font-family: 'Noto Sans KR', sans-serif;
}

.map-wrapper {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  min-height: 300px;
}

#naver-map {
  flex: 2;
  /* Larger map on the left */
  height: 350px;
  background: #111;
  border-radius: 12px;
  border: 1px solid #333;
  overflow: hidden;
}

.address-card {
  flex: 1;
  background: #ffffff;
  border-radius: 12px;
  padding: 30px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-icon {
  color: #007aff;
  font-size: 18px;
  margin-top: 2px;
}

.info-text {
  font-size: 15px;
  line-height: 1.5;
  color: #000000;
  font-weight: 500;
  word-break: keep-all;
}

.cta-section {
  margin-top: 60px;
}

.cta-promo-text {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #b30000 0%, #ff0000 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  padding: 18px 60px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  animation: buttonGlow 3s infinite;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
}

@keyframes buttonGlow {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
  }

  50% {
    box-shadow: 0 0 35px rgba(255, 0, 0, 0.7);
  }
}

/* Responsive adjustments handled as a group at the bottom */

/* Shared Responsive Typography Settings */
@media (max-width: 1024px) {

  .hero-main-title,
  .profile-header-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {

  .hero-main-title,
  .profile-header-title {
    font-size: 28px;
  }

  .hero-sub-text {
    font-size: 16px;
    padding: 0 20px;
  }
}

/* Fix for 615px break issue */
@media (max-width: 615px) {
  .profile-header-title {
    font-size: 22px;
    flex-wrap: wrap;
    /* Allow title to wrap if still needed */
    line-height: 1.2;
  }

  .hero-main-title {
    font-size: 24px;
    line-height: 1.2;
  }
}

/* --- Final Footer Responsiveness (Highest Priority) --- */
@media (max-width: 850px) {
  .footer-section {
    width: 900px;
    max-width: 95vw;
    margin-top: 30px;
  }

  .map-wrapper {
    flex-direction: column !important;
    gap: 15px;
  }

  #naver-map {
    width: 100% !important;
    height: 400px !important;
    /* Force high visibility */
    flex: none !important;
    /* Stop flex-grow from squeezing height */
  }

  .address-card {
    width: 100% !important;
    padding: 24px;
    flex: none !important;
  }

  .footer-title {
    font-size: 18px;
    padding: 0 10px;
  }

  .cta-promo-text {
    font-size: 15px;
    /* One step smaller for mobile */
  }
}
