/* harin8/styles.css */

:root{
  --bg0:#070A12;
  --bg1:#0B1230;
  --surface:rgba(255,255,255,.06);
  --surface2:rgba(255,255,255,.10);
  --stroke:rgba(255,255,255,.14);
  --text:#F5F7FF;
  --muted:rgba(245,247,255,.72);
  --muted2:rgba(245,247,255,.55);
  --accent:#7C3AED; /* violet */
  --accent2:#06B6D4; /* cyan */
  --good:#22C55E;
  --shadow:0 18px 60px rgba(0,0,0,.35);
  --shadow2:0 10px 30px rgba(0,0,0,.28);
  --radius:18px;
  --radius2:24px;
  --maxw:740px;
  --gap:18px;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Pretendard','Malgun Gothic',system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  overflow:hidden;
  width:100vw;
  height:100vh;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible{outline:2px solid var(--accent2);outline-offset:3px;border-radius:12px}
button{font:inherit}

.background{
  position:fixed; inset:0;
  background:
    radial-gradient(900px 520px at 15% 15%, rgba(124,58,237,.55), transparent 60%),
    radial-gradient(700px 420px at 85% 25%, rgba(6,182,212,.45), transparent 55%),
    radial-gradient(1000px 650px at 55% 95%, rgba(34,197,94,.14), transparent 65%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  z-index:-2;
}
.background::after{
  content:"";
  position:absolute; inset:-40px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
  mix-blend-mode:overlay;
  opacity:.30;
  pointer-events:none;
  transform:translateZ(0);
}

/* scrolling container */
.page-container{
  position:relative;
  height:100vh;
  width:100%;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  padding-bottom:28px;
}
.page-container::-webkit-scrollbar{width:10px}
.page-container::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, rgba(124,58,237,.55), rgba(6,182,212,.45));
  border-radius:999px;
}
.page-container::-webkit-scrollbar-track{background:transparent}

.content-wrapper{
  max-width:var(--maxw);
  margin:0 auto;
  padding:88px 20px 96px;
}

/* index-only top helper header */
.header-container{
  position:sticky;
  top:0;
  z-index:50;
  max-width:var(--maxw);
  margin:0 auto;
  padding:14px 16px 0;
}
.header-flex{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.back-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.07);
  border:1px solid var(--stroke);
  backdrop-filter:blur(10px);
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
  font-weight:650;
  letter-spacing:.01em;
}
.back-link:hover{transform:translateY(-1px);background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.20)}
.header-label{
  font-size:12px;
  font-weight:650;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted2);
  opacity:.9;
}

/* reveal animation (IntersectionObserver adds .visible) */
#heroSection,#socialIcons,#actionButtons,#sliderSection,#footer,
#header,.faq-item{
  opacity:0;
  transform:translateY(18px);
  filter:blur(6px);
  transition:opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1), filter .8s ease;
}
.visible{
  opacity:1 !important;
  transform:translateY(0) !important;
  filter:blur(0) !important;
}

/* HERO */
.hero-section{margin-bottom:42px}
.hero-cover{
  height: 360px;
  border-radius:var(--radius2);
  background:
    linear-gradient(155deg, rgba(236,72,153,.18), rgba(59,130,246,.12)),
    url("../harin4/img/2.png") center/cover;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:var(--shadow2);
  position:relative;
  overflow:hidden;
}
.hero-cover::before{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(900px 380px at 0% 0%, rgba(255,255,255,.14), transparent 65%),
             radial-gradient(700px 300px at 100% 0%, rgba(59,130,246,.18), transparent 62%),
             linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.52));
  pointer-events:none;
}
.profile-card{
  margin: 16px 14px 0;
  border-radius:var(--radius2);
  background: linear-gradient(180deg, rgba(11,18,48,.78), rgba(7,10,18,.72));
  border:1px solid rgba(255,255,255,.14);
  box-shadow:var(--shadow);
  backdrop-filter:blur(12px);
  padding:26px 22px 22px;
  text-align:left;
  display:grid;
  grid-template-columns:92px 1fr;
  grid-template-rows:auto auto auto;
  column-gap:18px;
  row-gap:8px;
  align-items:start;
}
.avatar{
  width:92px;
  height:92px;
  border-radius:22px;
  background:url("../harin4/img/1.png") center/cover;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 10px 26px rgba(0,0,0,.30);
  grid-column:1;
  grid-row:1 / span 3;
  align-self:start;
}
.profile-title{
  grid-column:2;
  margin:2px 0 0;
  font-size:28px;
  letter-spacing:-.02em;
  line-height:1.15;
  align-self:end;
}
.profile-desc{
  grid-column:2;
  margin:0;
  color:var(--muted);
  line-height:1.55;
  font-size:14px;
  max-width:42ch;
  align-self:start;
}
.profile-handle{
  grid-column:2;
  margin:4px 0 0;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  color:rgba(245,247,255,.78);
  font-weight:650;
  font-size:13px;
  width:fit-content;
}

/* SOCIAL */
.social-icons{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}
.social-btn{
  width:44px;height:44px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(10px);
  transition:transform .16s ease, background .16s ease, border-color .16s ease;
}
.social-btn:hover{
  transform:translateY(-2px) rotate(-2deg);
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.22);
}

/* ACTION BUTTONS */
.action-buttons{
  margin-top:24px;
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.action-btn{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:16px 16px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  box-shadow:0 12px 28px rgba(0,0,0,.22);
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
  font-weight:700;
  letter-spacing:.01em;
}
.action-btn::after{
  content:"";
  position:absolute; inset:0;
  border-radius:20px;
  background:linear-gradient(90deg, rgba(124,58,237,.55), rgba(6,182,212,.55));
  opacity:0;
  filter:blur(14px);
  z-index:-1;
  transition:opacity .20s ease;
}
.action-btn:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.10)}
.action-btn:hover::after{opacity:.30}
.action-btn-subtitle{
  font-size:12px;
  color:var(--muted2);
  font-weight:650;
  margin-top:2px;
}

/* SLIDER */
.slider-section{margin-top:30px}
.slider-header{
  margin:0 4px 14px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.slider-title{
  font-size:18px;
  font-weight:800;
  letter-spacing:-.01em;
}
.slider-subtitle{
  color:var(--muted2);
  font-size:13px;
  font-weight:600;
}

.slider-container{
  position:relative;
  overflow:hidden;
  border-radius:var(--radius2);
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  box-shadow:var(--shadow2);
  touch-action:pan-y;
}
.slider-track{
  display:flex;
  transition:transform .6s cubic-bezier(.2,.8,.2,1);
  will-change:transform;
  width:100%;
}
.slide{
  min-width:100%;
  width:100%;
  flex:0 0 100%;
  flex-shrink:0;
}
.slide-card{
  display:block;
  padding:14px;
}
.slide-image{
  width:100%;
  height:420px;
  object-fit:cover;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 12px 34px rgba(0,0,0,.32);
  transform:translateZ(0);
}

.slider-dots{
  margin-top:12px;
  display:flex;
  justify-content:center;
  gap:10px;
}
.dot{
  width:26px;
  height:6px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.18);
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
  cursor:pointer;
}
.dot.active{
  background:linear-gradient(90deg, rgba(124,58,237,.85), rgba(6,182,212,.75));
  border-color:rgba(255,255,255,.30);
  transform:scaleX(1.05);
}

/* FOOTER */
.footer{
  margin-top:44px;
  padding:18px 4px 0;
  color:var(--muted2);
  font-size:12px;
  text-align:center;
  letter-spacing:.02em;
}

/* FAQ PAGE */
.header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:18px 16px;
  border-radius:var(--radius2);
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  box-shadow:var(--shadow2);
  backdrop-filter:blur(12px);
  margin-bottom:18px;
}
.header h1{
  font-size:22px;
  font-weight:850;
  letter-spacing:-.02em;
}
.back-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.14);
  color:rgba(245,247,255,.86);
  font-weight:700;
}
.back-btn svg{width:18px;height:18px}

.faq-container{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.faq-item{
  border-radius:var(--radius2);
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  box-shadow:0 10px 26px rgba(0,0,0,.22);
  overflow:hidden;
}
.faq-question{
  width:100%;
  padding:16px 16px;
  background:transparent;
  border:0;
  color:var(--text);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  cursor:pointer;
  text-align:left;
  font-weight:800;
  letter-spacing:-.01em;
}
.faq-question span{line-height:1.35}
.faq-arrow{
  width:20px;height:20px;
  opacity:.9;
  transition:transform .25s ease, opacity .25s ease;
}
.faq-question[aria-expanded="true"] .faq-arrow{
  transform:rotate(180deg);
  opacity:1;
}
.faq-answer{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:max-height .5s cubic-bezier(.2,.8,.2,1), opacity .35s ease, padding .35s ease;
  padding:0 16px 0;
}
.faq-answer p{
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
  padding-top:0;
}
.faq-answer.open{
  max-height:520px;
  opacity:1;
  padding:0 16px 16px;
}
.faq-answer.open p{padding-top:4px}

/* responsive tweaks */
@media (max-width: 520px){
  .profile-card{
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto auto;
    justify-items:center;
    text-align:center;
    margin: 14px 10px 0;
    padding:22px 18px 18px;
  }
  .avatar{
    grid-column:1;
    grid-row:auto;
    width:84px;
    height:84px;
    border-radius:20px;
  }
  .profile-title,.profile-desc,.profile-handle{grid-column:1}
  .profile-desc{max-width:34ch}
}

@media (min-width: 720px){
  .content-wrapper{padding-left:24px;padding-right:24px}
  .profile-card{
  margin: 16px 14px 0;
  border-radius:var(--radius2);
  background: linear-gradient(180deg, rgba(11,18,48,.78), rgba(7,10,18,.72));
  border:1px solid rgba(255,255,255,.14);
  box-shadow:var(--shadow);
  backdrop-filter:blur(12px);
  padding:26px 22px 22px;
  text-align:left;
  display:grid;
  grid-template-columns:92px 1fr;
  grid-template-rows:auto auto auto;
  column-gap:18px;
  row-gap:8px;
  align-items:start;
}
  .avatar{
  width:92px;
  height:92px;
  border-radius:22px;
  background:url("../harin4/img/1.png") center/cover;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 10px 26px rgba(0,0,0,.30);
  grid-column:1;
  grid-row:1 / span 3;
  align-self:start;
}
  .slide-image{height:460px}
  .action-buttons{grid-template-columns:1fr 1fr}
  .action-btn{min-height:64px}
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  *{transition:none !important; animation:none !important; scroll-behavior:auto !important}
}
