/* ========================================
   NEARBY - Style
   ======================================== */

/* --- CSS Variables --- */
:root {
  --primary: #0ACF83;
  --primary-dark: #06B66F;
  --primary-glow: rgba(10, 207, 131, 0.3);
  --bg-dark: #0A0A0A;
  --bg-darker: #050505;
  --bg-charcoal: #111111;
  --bg-light: #F5F5F0;
  --bg-white: #FFFFFF;
  --text-white: #FFFFFF;
  --text-black: #1A1A1A;
  --text-gray: #888888;
  --text-light-gray: #AAAAAA;
  --accent-blue: #3B82F6;
  --accent-amber: #F59E0B;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-black);
  background: var(--bg-white);
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--primary);
  color: #000;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  gap: 36px;
}

.nav-link {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.97);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-nav-link {
  color: var(--text-white);
  font-size: 28px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.mobile-nav.active .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.active .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.active .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.active .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }

.mobile-nav-link:hover {
  color: var(--primary);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-dark);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.4) 0%, rgba(5,5,5,0.6) 50%, rgba(5,5,5,0.9) 100%),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(10, 207, 131, 0.1) 0%, transparent 70%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.1; }
  100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}

.hero-title {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.blur-word {
  display: inline-block;
  opacity: 0;
  filter: blur(20px);
  transform: translateY(20px);
  animation: blurReveal 0.8s forwards;
}

.blur-word:nth-child(1) { animation-delay: 0.5s; }
.blur-word:nth-child(2) { animation-delay: 0.65s; }
.blur-word:nth-child(3) { animation-delay: 0.9s; }
.blur-word:nth-child(4) { animation-delay: 1.0s; }
.blur-word:nth-child(5) { animation-delay: 1.1s; }
.blur-word:nth-child(6) { animation-delay: 1.25s; }

@keyframes blurReveal {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.hero-desc {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-light-gray);
  margin-bottom: 40px;
  line-height: 1.7;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 1.5s forwards;
}

.hero-desc.fade-up { animation-delay: 1.4s; }
.btn.fade-up { animation-delay: 1.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator span {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

/* --- Section Commons --- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-black);
}

.section-title-light {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--text-white);
}

.section-desc {
  font-size: 17px;
  color: var(--text-gray);
  margin-top: 12px;
}

/* --- Services --- */
.services {
  padding: 120px 0;
  background: var(--bg-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid #eee;
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.08);
  border-color: transparent;
}

.service-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.15));
}

.service-icon {
  width: 64px;
  height: 64px;
  position: relative;
  z-index: 1;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-body {
  padding: 28px;
}

.service-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-gray);
  letter-spacing: 0.1em;
}

.service-name {
  font-size: 22px;
  font-weight: 800;
  margin: 8px 0 12px;
  letter-spacing: -0.02em;
}

.service-desc {
  font-size: 14.5px;
  color: #555;
  line-height: 1.7;
}

/* --- About --- */
.about {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-dark);
}

.about-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 20% 50%, rgba(10, 207, 131, 0.06) 0%, transparent 70%);
}

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  font-size: 16px;
  color: var(--text-light-gray);
  line-height: 1.8;
  margin-top: 24px;
}

.value-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.05);
}

.value-card:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(10, 207, 131, 0.2);
}

.value-card + .value-card {
  margin-top: 16px;
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.value-icon.proximity {
  background: linear-gradient(135deg, #0ACF83, #06B66F);
}

.value-icon.trust {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.value-icon.share {
  background: linear-gradient(135deg, #F59E0B, #D97706);
}

.value-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.value-content p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* --- Vision --- */
.vision {
  padding: 100px 0;
  background: var(--bg-light);
}

.vision-inner {
  text-align: center;
}

.vision-quote {
  font-size: clamp(24px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--text-black);
  margin-top: 24px;
}

/* --- Stats --- */
.stats {
  padding: 120px 0;
  background: var(--bg-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.stat-item:hover {
  background: var(--bg-light);
}

.stat-number {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-suffix {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--primary-dark);
}

.stat-label {
  font-size: 15px;
  color: var(--text-gray);
  margin-top: 12px;
  font-weight: 500;
}

/* --- News --- */
.news {
  padding: 120px 0;
  background: var(--bg-light);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
  transition: all var(--transition);
  border: 1px solid #eee;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
  border-color: transparent;
}

.news-img {
  height: 200px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.news-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  color: var(--text-white);
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

.news-body {
  padding: 24px;
}

.news-date {
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 500;
}

.news-title {
  font-size: 17px;
  font-weight: 700;
  margin: 10px 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.news-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* --- CTA --- */
.cta {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-darker);
  background-image: url('images/hero-bg-web.jpg');
  background-size: cover;
  background-position: center top;
}

.cta-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.85) 0%, rgba(5,5,5,0.7) 50%, rgba(5,5,5,0.9) 100%),
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(10, 207, 131, 0.1) 0%, transparent 70%);
}

.cta-inner {
  position: relative;
  text-align: center;
}

.cta-title {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.cta-desc {
  font-size: 18px;
  color: var(--text-gray);
  margin: 24px 0 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Contact --- */
.contact {
  padding: 120px 0;
  background: var(--bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.contact-item {
  margin-bottom: 32px;
}

.contact-item h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.contact-item a,
.contact-item p {
  font-size: 16px;
  color: var(--text-black);
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--primary-dark);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1.5px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--bg-white);
  transition: all var(--transition);
  color: var(--text-black);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  padding: 80px 0 40px;
  color: var(--text-gray);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 32px;
}

.footer-logo-img {
  height: 32px;
  width: auto;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--primary);
}

.portfolio-disclaimer {
  text-align: center;
  color: #e53e3e;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(229, 62, 62, 0.3);
  border-radius: 6px;
  background: rgba(229, 62, 62, 0.05);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #555;
  line-height: 1.8;
}

.footer-copy {
  margin-top: 16px;
  color: #444;
}

/* --- Scroll Animations --- */
.anim-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-links {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }

  .header-inner { height: 64px; }

  .hero-title {
    font-size: clamp(28px, 8vw, 48px);
  }

  .services-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .services { padding: 80px 0; }
  .about { padding: 80px 0; }
  .stats { padding: 80px 0; }
  .news { padding: 80px 0; }
  .cta { padding: 80px 0; }
  .contact { padding: 80px 0; }

  .section-header { margin-bottom: 40px; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-item { padding: 24px 12px; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    gap: 32px;
    flex-wrap: wrap;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    padding: 16px 40px;
    width: 100%;
    max-width: 300px;
  }
}

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

  .hero-content {
    padding: 0 16px;
  }

  .vision-quote {
    font-size: 24px;
  }

  .footer-links {
    flex-direction: column;
    gap: 24px;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .blur-word {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .anim-on-scroll {
    opacity: 1;
    transform: none;
  }

  html { scroll-behavior: auto; }
}
