/* harin8/style.css
   Redesign v2: soft pastel + pearl glass (same content/links/functionality).
   Notes from user:
   - Mobile: keep the same section order as desktop; center social buttons.
   - Desktop: center text inside action buttons.
   - One unified background across full site height.
*/

:root{
  --bg0:#fff0f7;
  --bg1:#eef2ff;

  --text:#1e1636;
  --muted:rgba(30,22,54,.72);
  --muted2:rgba(30,22,54,.56);

  --card:rgba(255,255,255,.62);
  --card2:rgba(255,255,255,.74);
  --border:rgba(255,255,255,.72);

  --accent:#ff4fd8;
  --accent2:#7c5cff;
  --accent3:#2dd4bf;

  --radius-lg:22px;
  --radius-xl:34px;

  --shadow:0 20px 70px rgba(21, 10, 45, .18);
  --shadow-soft:0 14px 42px rgba(21, 10, 45, .12);
  --blur:18px;

  --container:980px;
  --pad:20px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  min-height:100dvh;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;
  color:var(--text);
  background:linear-gradient(180deg, var(--bg0), var(--bg1));
  background-attachment:fixed;
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
button{font-family:inherit}

/* Unified background overlay */
.background{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-2;
}
.background::before,
.background::after{
  content:"";
  position:absolute;
  inset:-20%;
}
.background::before{
  background:
    radial-gradient(closest-side at 16% 18%, rgba(255,79,216,.22), transparent 62%),
    radial-gradient(closest-side at 84% 22%, rgba(124,92,255,.18), transparent 62%),
    radial-gradient(closest-side at 54% 88%, rgba(45,212,191,.14), transparent 64%),
    radial-gradient(closest-side at 30% 78%, rgba(255,163,199,.16), transparent 62%);
  filter:blur(24px);
  opacity:.95;
  transform:translate3d(0,0,0);
}
.background::after{
  inset:0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.26),
      rgba(255,255,255,.26) 1px,
      transparent 1px,
      transparent 10px
    );
  opacity:.12;
  mix-blend-mode:soft-light;
}

/* Top bar (index) */
.header-container{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter:blur(var(--blur));
  -webkit-backdrop-filter:blur(var(--blur));
  background:linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.42));
  border-bottom:1px solid rgba(255,255,255,.68);
}
.header-flex{
  max-width:var(--container);
  margin:0 auto;
  padding:12px var(--pad);
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
}
.back-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(255,255,255,.92);
  box-shadow:var(--shadow-soft);
  transition:transform .18s ease, box-shadow .18s ease;
}
.back-link:hover{transform:translateY(-1px);box-shadow:0 18px 46px rgba(21,10,45,.14)}
.header-label{
  font-size:12px;
  color:var(--muted2);
  background:rgba(255,255,255,.55);
  border:1px dashed rgba(124,92,255,.22);
  padding:8px 10px;
  border-radius:14px;
}

/* Layout */
.page-container{
  max-width:var(--container);
  margin:0 auto;
  padding:28px var(--pad) 44px;
}
.content-wrapper{
  display:flex;
  flex-direction:column;
  gap:22px;
}

/* Reveal */
.hero-section,
.social-icons,
.action-buttons,
.slider-section,
.footer,
.header,
.faq-item{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .7s ease, transform .7s ease;
}
.visible{
  opacity:1;
  transform:translateY(0);
}

/* Hero */
.hero-section{
  position:relative;
  border-radius:var(--radius-xl);
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.75);
  background:linear-gradient(180deg, rgba(255,255,255,.64), rgba(255,255,255,.52));
  display:grid;
  grid-template-columns:1.15fr .85fr;
  min-height:360px;
}

.hero-cover{
  position:relative;
  background-image:url("../harin4/img/1.png");
  background-size:cover;
  background-position:center;
  filter:saturate(1.08) contrast(1.02);
}
.hero-cover::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.03),
      rgba(255,240,247,.28) 62%,
      rgba(255,240,247,.46)
    ),
    radial-gradient(520px 520px at 28% 50%, rgba(255,79,216,.06), transparent 60%);
  opacity:.55;
}

.profile-card{
  position:relative;
  padding:30px 26px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
  backdrop-filter:blur(var(--blur));
  -webkit-backdrop-filter:blur(var(--blur));
  background:linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.56));
  border-left:1px solid rgba(255,255,255,.72);
}
.avatar{
  width:96px;
  height:96px;
  border-radius:50%;
  background-image:url("../harin4/img/2.png");
  background-size:cover;
  background-position:center;
  border:1px solid rgba(255,255,255,.95);
  box-shadow:0 0 0 8px rgba(255,79,216,.12), 0 18px 44px rgba(21,10,45,.16);
}
.profile-title{
  margin:6px 0 0;
  font-size:30px;
  letter-spacing:.3px;
}
.profile-desc{
  margin:0;
  color:var(--muted);
  line-height:1.55;
  font-size:15px;
}
.profile-handle{
  margin-top:6px;
  color:var(--accent2);
  font-weight:750;
  letter-spacing:.2px;
}

/* Social */
.social-icons{
  display:flex;
  gap:12px;
  justify-content:center; /* mobile + desktop centered */
  flex-wrap:wrap;
}
.social-btn{
  width:46px;
  height:46px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(255,255,255,.92);
  box-shadow:var(--shadow-soft);
  color:rgba(30,22,54,.78);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.social-btn:hover{
  transform:translateY(-2px);
  background:linear-gradient(135deg, rgba(255,79,216,.22), rgba(124,92,255,.16), rgba(255,255,255,.85));
  box-shadow:0 18px 46px rgba(21,10,45,.14);
}

/* Action Buttons (centered text) */
.action-buttons{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.action-btn{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center; /* desktop centering */
  gap:8px;
  padding:16px 18px;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.58));
  border:1px solid rgba(255,255,255,.92);
  box-shadow:var(--shadow-soft);
  transition:transform .18s ease, box-shadow .18s ease;
  font-weight:750;
  letter-spacing:.1px;
  line-height:1.25;
}
.action-btn::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  border:1px solid rgba(255,79,216,.14);
  box-shadow:inset 0 0 0 1px rgba(124,92,255,.10);
  opacity:.9;
}
.action-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 60px rgba(21,10,45,.16);
}
.action-btn:active{transform:translateY(0)}
.action-btn-subtitle{
  font-size:12px;
  font-weight:750;
  color:rgba(30,22,54,.66);
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(124,92,255,.18);
  background:rgba(255,255,255,.78);
}

/* Slider */
.slider-section{
  border-radius:var(--radius-xl);
  border:1px solid rgba(255,255,255,.78);
  background:linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.54));
  box-shadow:var(--shadow);
  overflow:hidden;
}
.slider-header{
  padding:20px 20px 12px;
  border-bottom:1px solid rgba(255,255,255,.78);
  background:
    radial-gradient(900px 240px at 0% 0%, rgba(255,79,216,.14), transparent 60%),
    radial-gradient(760px 260px at 100% 20%, rgba(124,92,255,.12), transparent 60%);
}
.slider-title{
  margin:0;
  font-size:18px;
  letter-spacing:.2px;
}
.slider-subtitle{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
}
.slider-container{position:relative;overflow:hidden}
.slider-track{
  display:flex;
  width:100%;
  transition:transform .6s cubic-bezier(.2,.85,.2,1);
}
.slide{min-width:100%;padding:18px}
.slide-card{
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:26px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.92);
  background:rgba(255,255,255,.44);
  box-shadow:0 22px 64px rgba(21,10,45,.16);
  transform:translateZ(0);
}
.slide-image{
  width:100%;
  height:clamp(420px, 72vh, 760px);
  object-fit:cover;
  object-position:center 25%;
  display:block;
  filter:saturate(1.06) contrast(1.03);
}
.slider-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  padding:5px 18px 18px;
}
.dot{
  width:34px;
  height:8px;
  border-radius:999px;
  background:rgba(30,22,54,.16);
  cursor:pointer;
  transition:transform .18s ease, background .18s ease;
}
.dot.active{
  background:linear-gradient(90deg, rgba(255,79,216,.78), rgba(124,92,255,.78));
}
.dot:hover{transform:scaleX(1.06)}

/* Footer */
.footer{
  margin-top:4px;
  padding:18px 0 0;
  color:rgba(30,22,54,.56);
  font-size:12px;
  text-align:center;
}

/* FAQ page */
.header{
  border-radius:var(--radius-xl);
  border:1px solid rgba(255,255,255,.78);
  background:linear-gradient(180deg, rgba(255,255,255,.74), rgba(255,255,255,.56));
  box-shadow:var(--shadow);
  padding:22px 20px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.header h1{
  margin:0;
  font-size:22px;
  letter-spacing:.2px;
}
.back-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.92);
  background:rgba(255,255,255,.78);
  box-shadow:var(--shadow-soft);
  transition:transform .18s ease, box-shadow .18s ease;
  color:var(--text);
}
.back-btn:hover{transform:translateY(-1px);box-shadow:0 18px 46px rgba(21,10,45,.14)}
.back-btn svg{width:18px;height:18px;opacity:.9}

.faq-container{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.faq-item{
  border-radius:24px;
  border:1px solid rgba(255,255,255,.78);
  background:linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.52));
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}
.faq-question{
  width:100%;
  text-align:left;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:16px 18px;
  background:transparent;
  border:none;
  color:var(--text);
  font-size:15px;
  font-weight:750;
  cursor:pointer;
}
.faq-question:focus-visible{
  outline:3px solid rgba(255,79,216,.26);
  outline-offset:3px;
  border-radius:18px;
}
.faq-arrow{
  width:18px;
  height:18px;
  opacity:.7;
  transition:transform .22s ease;
}
.faq-answer{
  max-height:0;
  overflow:hidden;
  transition:max-height .28s ease;
  will-change:max-height;
}
.faq-answer p{
  margin:0;
  padding:0 18px 16px;
  color:var(--muted);
  line-height:1.6;
  font-size:14px;
}
.faq-item.open .faq-arrow{transform:rotate(180deg)}
/* Responsiveness */
@media (max-width: 820px){
  /* Keep hero side-by-side on mobile to match desktop */
  .hero-section{grid-template-columns:1.1fr .9fr; min-height:280px}
  .profile-card{padding:18px 14px; align-items:center; text-align:center}
  .avatar{width:78px;height:78px}
  .profile-title{font-size:24px}
  .profile-desc{font-size:13px}
  .header-flex{flex-direction:column;align-items:flex-start}
}

@media (max-width: 420px){
  .slide{padding:14px}
  .slide-image{height:clamp(340px, 64vh, 560px)}
  .profile-title{font-size:26px}
  .avatar{width:70px;height:70px}
  .profile-card{padding:16px 12px}
  .action-btn{padding:14px 14px}
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important}
  .hero-section,.social-icons,.action-buttons,.slider-section,.footer,.header,.faq-item{
    transition:none !important;
    transform:none !important;
    opacity:1 !important;
  }
  .slider-track{transition:none !important}
}
