/* ===== Hero Section — Cyberpunk Arcade ===== */

.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 0, 128, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 128, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 20px 20px, 20px 20px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-glow-1 {
  background: var(--accent-blue);
  top: -200px;
  right: -100px;
}

.hero-glow-2 {
  background: var(--accent-purple);
  bottom: -200px;
  left: -100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero-photo {
  position: relative;
  z-index: 1;
}

/* Neon Arcade: square photo with corner bracket markers + scanning */
.hero-photo-frame {
  width: 280px;
  height: 280px;
  border-radius: 4px;
  overflow: visible;
  border: 2px solid #FF0080;
  box-shadow:
    0 0 15px rgba(255, 0, 128, 0.5),
    0 0 30px rgba(255, 0, 128, 0.3),
    0 0 60px rgba(255, 0, 128, 0.15);
  animation: neon-border-pulse 3s ease-in-out infinite;
  position: relative;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  /* CRT-style phosphor tint */
  filter: contrast(1.05) saturate(1.1);
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 800;
  color: var(--hero-code-color);
}

/* Hero badge */
.hero .badge {
  margin-bottom: 24px;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.08);
  color: #00E5FF;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.hero h1 {
  margin-bottom: 20px;
  -webkit-text-fill-color: unset;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-code {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.25;
  white-space: pre;
  line-height: 1.6;
  pointer-events: none;
  user-select: none;
}

[dir="rtl"] .hero-code {
  right: auto;
  left: 0;
}

/* ===== Stats Bar — Neon Arcade Horizontal ===== */

.stats-bar {
  background: rgba(10, 10, 26, 0.98);
  border-top: 2px solid rgba(255, 0, 128, 0.4);
  border-bottom: 2px solid rgba(255, 0, 128, 0.4);
  padding: 20px 0;
  box-shadow:
    0 -2px 30px rgba(255, 0, 128, 0.15),
    0 2px 30px rgba(255, 0, 128, 0.15);
  position: relative;
}

/* Neon glow line animation on top */
.stats-bar::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FF0080, #00E5FF, #FF0080, transparent);
  animation: stats-line-glow 3s ease-in-out infinite;
}

@keyframes stats-line-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  text-align: center;
  font-family: var(--font-mono);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
}

.stat-item:not(:last-child)::after {
  display: none;
}

.stat-item h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-family: var(--font-mono);
  color: #FF0080;
  -webkit-text-fill-color: #FF0080;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  margin-bottom: 0;
  text-shadow:
    0 0 10px rgba(255, 0, 128, 0.6),
    0 0 20px rgba(255, 0, 128, 0.3),
    0 0 40px rgba(255, 0, 128, 0.15);
  white-space: nowrap;
}

.stat-item p {
  font-size: 0.85rem;
  color: rgba(0, 229, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ===== Services Section ===== */

.services {
  background: var(--bg-dark);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.service-card .card-icon svg {
  width: 28px;
  height: 28px;
}

.service-card .card-price {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 16px;
}

.service-card ul {
  margin-bottom: 20px;
}

.service-card li {
  padding: 4px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  position: relative;
  padding-inline-start: 20px;
}

.service-card li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

/* Service card h3 neon color per card */
.service-card[data-neon="pink"] h3 { color: #FF0080; text-shadow: 0 0 12px rgba(255, 0, 128, 0.3); }
.service-card[data-neon="cyan"] h3 { color: #00E5FF; text-shadow: 0 0 12px rgba(0, 229, 255, 0.3); }
.service-card[data-neon="green"] h3 { color: #00FF88; text-shadow: 0 0 12px rgba(0, 255, 136, 0.3); }
.service-card[data-neon="orange"] h3 { color: #FF6B00; text-shadow: 0 0 12px rgba(255, 107, 0, 0.3); }
.service-card[data-neon="yellow"] h3 { color: #FFE500; text-shadow: 0 0 12px rgba(255, 229, 0, 0.3); }

/* ===== How It Works — Terminal Style ===== */

.process {
  background: var(--bg-mid);
  position: relative;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  align-items: start;
}

/* Remove old connecting line */
.process-steps::before {
  display: none;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 8px;
  padding: 24px 16px;
  transition: all 0.3s ease;
}

.step:hover {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1), inset 0 0 20px rgba(0, 229, 255, 0.03);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  background: transparent;
  border: 2px solid var(--neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--neon-green);
  margin: 0 auto 12px;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2), inset 0 0 8px rgba(0, 255, 136, 0.05);
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.step p {
  font-size: 0.85rem;
}

/* ===== Portfolio Section ===== */

.portfolio {
  background: var(--bg-dark);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 28px;
}

.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.portfolio-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.portfolio-img {
  aspect-ratio: 16/10;
  background: var(--bg-light);
  overflow: hidden;
  position: relative;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.portfolio-card:hover .portfolio-img img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-body {
  padding: 24px;
}

.portfolio-body h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.portfolio-body p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-tags span {
  padding: 4px 12px;
  background: rgba(255, 0, 128, 0.08);
  color: var(--accent-blue);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===== AI Advantage Section ===== */

.advantage {
  background: var(--bg-mid);
  position: relative;
  overflow: hidden;
}

.advantage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(123, 47, 190, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.comparison-table {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-row:last-child { border-bottom: none; }

.comparison-row.header {
  background: rgba(255, 0, 128, 0.08);
}

.comparison-cell {
  padding: 16px 20px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.comparison-row.header .comparison-cell {
  font-weight: 700;
  color: var(--text-primary);
}

.comparison-cell:not(:last-child) {
  border-inline-end: 1px solid var(--border-subtle);
}

.comparison-cell.highlight {
  color: var(--accent-green);
  font-weight: 600;
}

.comparison-cell.dim {
  color: var(--text-muted);
}

/* ===== Testimonials ===== */

.testimonials {
  background: var(--bg-dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-accent);
}

.testimonial-stars {
  color: var(--accent-orange);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
  display: flex;
  gap: 4px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.testimonial-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== FAQ Section ===== */

.faq {
  background: var(--bg-mid);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

/* ===== Contact Section — Neon Form ===== */

.contact {
  background: var(--bg-dark);
  position: relative;
}

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

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info > p {
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.contact-detail svg,
.contact-detail img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-blue);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid rgba(255, 0, 128, 0.2);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  box-shadow: 0 0 30px rgba(255, 0, 128, 0.05);
}

/* Neon corner accents on contact form */
.contact-form::before,
.contact-form::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.contact-form::before {
  top: -1px;
  right: -1px;
  border-top: 2px solid var(--neon-cyan);
  border-right: 2px solid var(--neon-cyan);
  box-shadow: 2px -2px 8px rgba(0, 229, 255, 0.3);
}

[dir="rtl"] .contact-form::before {
  right: auto;
  left: -1px;
  border-right: none;
  border-left: 2px solid var(--neon-cyan);
  box-shadow: -2px -2px 8px rgba(0, 229, 255, 0.3);
}

.contact-form::after {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid var(--neon-cyan);
  border-left: 2px solid var(--neon-cyan);
  box-shadow: -2px 2px 8px rgba(0, 229, 255, 0.3);
}

[dir="rtl"] .contact-form::after {
  left: auto;
  right: -1px;
  border-left: none;
  border-right: 2px solid var(--neon-cyan);
  box-shadow: 2px 2px 8px rgba(0, 229, 255, 0.3);
}

/* ===== Footer ===== */

.footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 46px;
  width: 46px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--text-primary);
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--accent-blue);
}

/* ===== Dark Mode Section Overrides ===== */

[data-theme="dark"] .hero-glow { opacity: 0.15; }

[data-theme="dark"] .hero-photo-frame {
  border-color: #FF0080;
  box-shadow:
    0 0 15px rgba(255, 0, 128, 0.5),
    0 0 30px rgba(255, 0, 128, 0.3),
    0 0 60px rgba(255, 0, 128, 0.15);
}

[data-theme="dark"] .hero-code {
  color: rgba(255, 255, 255, 0.4);
  opacity: 0.28;
}

[data-theme="dark"] .portfolio-tags span {
  background: rgba(255, 0, 128, 0.08);
  color: var(--accent-blue);
}

[data-theme="dark"] .comparison-row.header {
  background: rgba(255, 0, 128, 0.08);
}

[data-theme="dark"] .advantage::before {
  background: radial-gradient(ellipse at 50% 100%, rgba(123, 47, 190, 0.1) 0%, transparent 60%);
}

[data-theme="dark"] .contact-form {
  background: rgba(10, 10, 30, 0.6);
  box-shadow: 0 0 30px rgba(255, 0, 128, 0.05);
}

[data-theme="dark"] .step-number {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.25), inset 0 0 8px rgba(0, 255, 136, 0.05);
}

[data-theme="dark"] .footer-social a img { opacity: 0.8; }
[data-theme="dark"] .footer-social a:hover img { opacity: 1; }

/* ===== Light Mode Section Defaults ===== */

.hero-glow { opacity: 0.15; }

.hero-photo-frame {
  border-color: #FF0080;
  box-shadow:
    0 0 15px rgba(255, 0, 128, 0.4),
    0 0 30px rgba(255, 0, 128, 0.2);
}

.hero-code {
  color: rgba(0, 229, 255, 0.35);
  opacity: 0.3;
  text-shadow: 0 0 5px rgba(0, 229, 255, 0.2);
}

.portfolio-tags span {
  background: rgba(123, 47, 190, 0.08);
  color: var(--accent-purple);
}

.contact-form {
  background: #fff;
  box-shadow: var(--shadow-card);
}

.step-number {
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.15);
}

.footer-social a img {
  opacity: 0.6;
  transition: opacity var(--transition);
}

.footer-social a:hover img { opacity: 1; }

/* ===== Portfolio Filters ===== */

.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--gradient-main);
  color: #fff;
  border-color: transparent;
}

.portfolio-card.hidden-extra { display: none; }

.portfolio-card.show-extra {
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.show-more-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* ===== Video Showcase ===== */

.video-showcase {
  background: var(--bg-mid);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 28px;
}

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.video-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-light);
  cursor: pointer;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  pointer-events: none;
}

.video-play-btn.playing { opacity: 0; }

.video-play-btn svg {
  width: 64px;
  height: 64px;
  fill: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.video-card-body {
  padding: 20px 24px;
}

.video-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.video-card-body p {
  font-size: 0.9rem;
}
