/* =============================================
   리커브마케팅 - 스타일시트
   디자인 수정 시 이 파일을 편집하세요.
   내용(텍스트) 수정은 index.html에서 하세요.
   ============================================= */

/* ── 기본 리셋 ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: #0A1628; color: #fff; font-family: 'Noto Sans KR', -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background-color: rgba(0,212,180,0.3); color: #fff; }

/* ── 카드 컴포넌트 ── */
.glass-card { background: rgba(255,255,255,0.04); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; }
.glass-card-hover { transition: all 0.4s cubic-bezier(0.4,0,0.2,1); }
.glass-card-hover:hover { background: rgba(255,255,255,0.08); border-color: rgba(0,212,180,0.3); box-shadow: 0 0 40px rgba(0,212,180,0.08), 0 8px 32px rgba(0,0,0,0.3); transform: translateY(-4px); }

.gradient-border-card { position: relative; background: rgba(255,255,255,0.03); border-radius: 20px; padding: 1px; }
.gradient-border-card::before { content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 1px; background: linear-gradient(135deg, rgba(0,212,180,0.4), rgba(139,92,246,0.4), rgba(59,130,246,0.2)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; pointer-events: none; }

/* ── 버튼 ── */
.btn-primary { background: linear-gradient(135deg, #00D4B4, #00B89C); color: #0A1628; font-weight: 700; padding: 14px 32px; border-radius: 14px; transition: all 0.4s cubic-bezier(0.4,0,0.2,1); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: none; font-size: 16px; text-decoration: none; position: relative; overflow: hidden; font-family: inherit; }
.btn-primary::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #00e6c3, #00D4B4, #8B5CF6); opacity: 0; transition: opacity 0.4s ease; }
.btn-primary:hover::before { opacity: 1; }
.btn-primary > *, .btn-primary svg, .btn-primary span { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,212,180,0.4), 0 4px 12px rgba(0,212,180,0.2); }

.btn-secondary { background: transparent; color: #00D4B4; font-weight: 600; padding: 14px 32px; border-radius: 14px; border: 1px solid rgba(0,212,180,0.3); transition: all 0.4s cubic-bezier(0.4,0,0.2,1); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 16px; text-decoration: none; font-family: inherit; }
.btn-secondary:hover { background: rgba(0,212,180,0.1); border-color: #00D4B4; transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,212,180,0.15); }

/* ── 타이포그래피 ── */
.section-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; background: linear-gradient(135deg, #00D4B4, #8B5CF6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-title { font-size: 2.75rem; font-weight: 900; line-height: 1.15; letter-spacing: -0.03em; }
@media (min-width: 768px) { .section-title { font-size: 3.25rem; } }
.section-subtitle { font-size: 1.125rem; color: #94A3B8; line-height: 1.7; max-width: 600px; }
.gradient-text { background: linear-gradient(135deg, #00D4B4, #00e6c3, #8B5CF6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── 구분선 & 배경 ── */
.section-divider { height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(0,212,180,0.5) 30%, rgba(139,92,246,0.5) 70%, transparent 100%); }
.mesh-gradient { background: radial-gradient(at 20% 80%, rgba(0,212,180,0.12) 0%, transparent 50%), radial-gradient(at 80% 20%, rgba(139,92,246,0.1) 0%, transparent 50%), radial-gradient(at 50% 50%, rgba(59,130,246,0.05) 0%, transparent 50%); }

/* ── 애니메이션 요소 ── */
.floating-orb { border-radius: 50%; filter: blur(80px); animation: float 8s ease-in-out infinite; }
.floating-orb-slow { animation: float 12s ease-in-out infinite reverse; }
.glow-pulse { animation: glowPulse 3s ease-in-out infinite; }
.marquee-track { display: flex; animation: marquee 25s linear infinite; width: max-content; }
.marquee-track:hover { animation-play-state: paused; }
.animate-ping { animation: ping 1s cubic-bezier(0,0,0.2,1) infinite; }
.animate-bounce { animation: bounce 1s infinite; }

/* ── 스크롤 진입 애니메이션 ── */
.scroll-anim { opacity: 0; transform: translateY(3rem); transition: opacity 1s ease, transform 1s ease; }
.scroll-anim.vis { opacity: 1; transform: translateY(0); }
.scroll-child { opacity: 0; transform: translateY(2rem); transition: opacity 0.7s ease, transform 0.7s ease; }
.scroll-child.vis { opacity: 1; transform: translateY(0); }
.scale-anim { opacity: 0; transform: scale(0.5); transition: opacity 0.7s ease, transform 0.7s ease; }
.scale-anim.vis { opacity: 1; transform: scale(1); }

/* ── 네비게이션 ── */
#navbar { transition: all 0.5s ease; }
#navbar.scrolled { background: rgba(10,22,40,0.85) !important; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid rgba(255,255,255,0.08); box-shadow: 0 25px 50px -12px rgba(10,22,40,0.5); }
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, #00D4B4, #8B5CF6); transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }

/* ── 히어로 ── */
.hero-el { opacity: 0; transform: translateY(2rem); transition: opacity 1s ease, transform 1s ease; }
.hero-el.loaded { opacity: 1; transform: translateY(0); }
.hero-curve { stroke-dasharray: 1600; stroke-dashoffset: 1600; transition: stroke-dashoffset 3s ease-out, opacity 0.5s ease; opacity: 0; }
.hero-curve.loaded { stroke-dashoffset: 0; opacity: 1; }

/* ── 모바일 CTA ── */
#mobileCTA { transform: translateY(100%); transition: transform 0.3s ease; }
#mobileCTA.vis { transform: translateY(0); }

/* ── 프로세스 진행 바 ── */
#processBar { width: 0%; transition: width 2.5s ease-out; }
#processBar.vis { width: calc(100% - 96px); }

/* ── 폼 ── */
.form-input { width: 100%; background: #0A1628; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: #fff; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s; outline: none; }
.form-input::placeholder { color: #64748B; }
.form-input:focus { border-color: rgba(0,212,180,0.5); box-shadow: 0 0 0 1px rgba(0,212,180,0.2); }
textarea.form-input { resize: none; }

/* ── 포트폴리오 필터 버튼 ── */
.filter-btn { padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.05); color: #94A3B8; font-family: inherit; transition: all 0.3s ease; }
.filter-btn:hover { color: #fff; border-color: rgba(0,212,180,0.3); }
.filter-btn.active { background: linear-gradient(135deg, #00D4B4, #8B5CF6); color: #0A1628; border-color: transparent; box-shadow: 0 4px 15px rgba(0,212,180,0.2); }

/* ── 포트폴리오 카드 ── */
.portfolio-card { transition: all 0.4s ease; }
.portfolio-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4); border-color: rgba(255,255,255,0.15) !important; }

/* ── 스크롤바 ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0A1628; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #00D4B4, #8B5CF6); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #00D4B4; }

/* ── 키프레임 ── */
@keyframes float { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(20px,-20px) scale(1.05); } 66% { transform: translate(-15px,15px) scale(0.95); } }
@keyframes glowPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes bounce { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); } 50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
