/* ============================================================
   SECTIONS.CSS — Pekin Digital Agency
   Hero, About, Services, Portfolio, Why Us, Process, Contact
   ============================================================ */

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-primary);
  padding-top: 80px;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 1;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent-blue);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent-blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  display: block;
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-height: 1.2em;
}

.typing-cursor {
  -webkit-text-fill-color: var(--color-accent-blue);
  animation: blink 1s step-end infinite;
}

.hero-desc {
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-glass-border);
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-glass-border);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: float 6s ease-in-out infinite;
}

.hero-orb-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.4), transparent);
  top: 10%;
  left: 10%;
}

.hero-orb-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(123, 47, 255, 0.4), transparent);
  bottom: 10%;
  right: 10%;
  animation-delay: -2s;
}

.hero-orb-3 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.25), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -4s;
}

.hero-device {
  position: relative;
  z-index: 2;
  width: 320px;
  height: 380px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: float 6s ease-in-out infinite;
}

.device-screen {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.screen-line {
  height: 10px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.3), rgba(123, 47, 255, 0.2), transparent);
  border-radius: 5px;
  animation: shimmer 3s ease-in-out infinite;
}

.screen-line:nth-child(2) {
  animation-delay: 0.5s;
  width: 80%;
}

.screen-line.short {
  width: 50%;
  animation-delay: 1s;
}

.screen-block {
  height: 80px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 47, 255, 0.1));
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  margin: 0.5rem 0;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.screen-grid .grid-cell {
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  animation: shimmer 3s ease-in-out infinite;
}

.screen-grid .grid-cell:nth-child(2) { animation-delay: 1s; }
.screen-grid .grid-cell:nth-child(3) { animation-delay: 1.5s; }
.screen-grid .grid-cell:nth-child(4) { animation-delay: 2s; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: float 3s ease-in-out infinite;
}

.scroll-mouse {
  width: 24px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--color-accent-blue);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

/* ===== ABOUT ===== */
.about {
  padding: 120px 0;
  background: var(--color-bg-secondary);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123, 47, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 4rem;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-card-3d {
  width: 340px;
  height: 340px;
  perspective: 1000px;
}

.card-3d-inner {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 80px rgba(0, 212, 255, 0.08);
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

.about-card-3d:hover .card-3d-inner {
  transform: rotateY(5deg) rotateX(-5deg);
}

.about-tech-stack {
  position: relative;
  width: 200px;
  height: 200px;
}

.tech-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: var(--color-accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.tech-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(0, 212, 255, 0.2);
  animation: orbit 8s linear infinite;
}

.tech-orbit-1 {
  width: 120px;
  height: 120px;
}

.tech-orbit-2 {
  width: 160px;
  height: 160px;
  animation-duration: 12s;
  animation-direction: reverse;
}

.tech-orbit-3 {
  width: 200px;
  height: 200px;
  animation-duration: 16s;
}

.tech-planet {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--color-accent-blue);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-feature {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(123, 47, 255, 0.12));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.about-feature:hover .feature-icon-wrap {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 47, 255, 0.2));
  box-shadow: var(--glow-blue);
}

.feature-icon-wrap svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent-blue);
}

.about-feature h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.375rem;
}

.about-feature p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ===== SERVICES ===== */
.services {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-primary);
}

.services-bg-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.04) 0%, rgba(123, 47, 255, 0.04) 50%, transparent 70%);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

/* ===== PORTFOLIO ===== */
.portfolio {
  padding: 120px 0;
  background: var(--color-bg-secondary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-grid .portfolio-item.large {
  grid-column: span 2;
}

/* ===== WHY US ===== */
.why-us {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-primary);
}

.why-us-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, 0.04), transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(123, 47, 255, 0.04), transparent 60%);
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

/* ===== PROCESS ===== */
.process {
  padding: 120px 0;
  background: var(--color-bg-secondary);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--color-accent-blue), var(--color-accent-purple), transparent);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--color-bg-primary);
  border: 2px solid;
  border-image: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple)) 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  background-clip: padding-box;
  color: var(--color-accent-blue);
  margin-bottom: 1.5rem;
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.625rem;
}

.step-content p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.step-line {
  display: none;
}

/* ===== CONTACT ===== */
.contact {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-primary);
}

.contact-bg-effect {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 47, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-top: 4rem;
  align-items: start;
}
