/* ===== Hero Section — Retro Terminal ===== */

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

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

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

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

.hero-glow-1 {
  background: #00FF41;
  top: -200px;
  right: -100px;
}

.hero-glow-2 {
  background: #008F11;
  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;
}

/* ===== Circular green-glowing photo frame ===== */
.hero-photo-frame {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #00FF41;
  box-shadow:
    0 0 20px rgba(0, 255, 65, 0.4),
    0 0 40px rgba(0, 255, 65, 0.2),
    0 0 80px rgba(0, 255, 65, 0.1),
    inset 0 0 20px rgba(0, 255, 65, 0.1);
  animation: photo-glow-pulse 4s ease-in-out infinite;
}

@keyframes photo-glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(0, 255, 65, 0.4),
      0 0 40px rgba(0, 255, 65, 0.2),
      0 0 80px rgba(0, 255, 65, 0.1),
      inset 0 0 20px rgba(0, 255, 65, 0.1);
  }
  50% {
    box-shadow:
      0 0 30px rgba(0, 255, 65, 0.6),
      0 0 60px rgba(0, 255, 65, 0.3),
      0 0 100px rgba(0, 255, 65, 0.15),
      inset 0 0 30px rgba(0, 255, 65, 0.15);
  }
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #008F11, #00FF41);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 800;
  color: #0D0208;
}

/* ===== System line above heading ===== */
.hero .system-line {
  font-size: 0.85rem;
  color: #008F11;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

.hero .badge {
  margin-bottom: 24px;
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid rgba(0, 255, 65, 0.2);
  color: #00FF41;
}

.hero h1 {
  margin-bottom: 20px;
  color: #00FF41;
  text-shadow: 0 0 10px #00FF41, 0 0 30px rgba(0, 255, 65, 0.3);
}

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

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

/* ===== Terminal-style code block ===== */
.hero-code {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono) !important;
  font-size: 0.85rem;
  color: #008F11;
  opacity: 0.35;
  white-space: pre;
  line-height: 1.6;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.2);
}

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

/* ===== Stats Bar — Terminal Output Line ===== */

.stats-bar {
  background: #0D0208;
  border-top: 1px solid rgba(0, 255, 65, 0.15);
  border-bottom: 1px solid rgba(0, 255, 65, 0.15);
  padding: 24px 0;
}

.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  text-align: center;
}

/* Terminal-style stats: "> projects: 70+ | delivery: 48h | success: 100%" */
.stats-bar .container {
  text-align: center;
}

.stat-item {
  display: inline;
}

.stat-item h3 {
  display: inline;
  font-size: 1rem;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #00FF41;
  color: #00FF41;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.stat-item p {
  display: inline;
  font-size: 0.9rem;
  color: #008F11;
}

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

.services {
  background: #0D0208;
}

.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: #00FF41;
  font-weight: 600;
  margin-bottom: 16px;
}

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

.service-card li {
  padding: 4px 0;
  color: #00CC33;
  font-size: 0.9rem;
  position: relative;
  padding-inline-start: 20px;
}

.service-card li::before {
  content: '>';
  position: absolute;
  inset-inline-start: 0;
  top: 4px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: #008F11;
  font-family: var(--font-mono) !important;
  font-size: 0.9rem;
}

/* ===== How It Works ===== */

.process {
  background: #0D0208;
  border-top: 1px solid rgba(0, 255, 65, 0.1);
}

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

.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(0, 255, 65, 0.2);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 0;
  background: transparent;
  border: 2px solid #00FF41;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #00FF41;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
  text-shadow: 0 0 10px #00FF41;
}

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

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

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

.portfolio {
  background: #0D0208;
}

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

.portfolio-card {
  border-radius: 0;
  overflow: hidden;
  background: rgba(0, 255, 65, 0.02);
  border: 1px solid rgba(0, 255, 65, 0.15);
  transition: all var(--transition);
}

.portfolio-card:hover {
  border-color: #00FF41;
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.15);
}

.portfolio-img {
  aspect-ratio: 16/10;
  background: #050108;
  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: rgba(13, 2, 8, 0.85);
  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(0, 255, 65, 0.05);
  color: #00FF41;
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 600;
}

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

.advantage {
  background: #0D0208;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 255, 65, 0.1);
}

.advantage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.comparison-table {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 0;
  overflow: hidden;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

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

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

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

.comparison-row.header .comparison-cell {
  font-weight: 700;
  color: #00FF41;
}

.comparison-cell:not(:last-child) {
  border-inline-end: 1px solid rgba(0, 255, 65, 0.1);
}

.comparison-cell.highlight {
  color: #00FF41;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

.comparison-cell.dim {
  color: #008F11;
}

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

.testimonials {
  background: #0D0208;
}

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

.testimonial-card {
  background: rgba(0, 255, 65, 0.02);
  border: 1px solid rgba(0, 255, 65, 0.15);
  border-radius: 0;
  padding: 32px;
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: #00FF41;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.testimonial-stars {
  color: #00FF41;
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
  display: flex;
  gap: 4px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #00CC33;
  margin-bottom: 24px;
  font-style: italic;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: transparent;
  border: 1px solid #00FF41;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #00FF41;
}

.testimonial-name {
  font-weight: 600;
  color: #00FF41;
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: #008F11;
}

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

.faq {
  background: #0D0208;
  border-top: 1px solid rgba(0, 255, 65, 0.1);
}

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

/* ===== Contact Section ===== */

.contact {
  background: #0D0208;
}

.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: #00CC33;
}

.contact-detail svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #00FF41;
}

.contact-form {
  background: rgba(0, 255, 65, 0.02);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 0;
  padding: 40px;
}

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

.footer {
  background: #050108;
  border-top: 1px solid rgba(0, 255, 65, 0.15);
  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;
  color: #008F11;
}

.footer-col h4 {
  color: #00FF41;
  margin-bottom: 20px;
  font-size: 1rem;
}

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

.footer-col a:hover {
  color: #00FF41;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 255, 65, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #008F11;
}

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

.footer-social a {
  color: #008F11;
  transition: color var(--transition);
}

.footer-social a:hover {
  color: #00FF41;
}

.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: 0;
  background: transparent;
  border: 1px solid rgba(0, 255, 65, 0.2);
  color: #008F11;
  font-family: var(--font-mono) !important;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  background: rgba(0, 255, 65, 0.05);
  border-color: #00FF41;
  color: #00FF41;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}

.filter-btn.active {
  background: rgba(0, 255, 65, 0.1);
  color: #00FF41;
  border-color: #00FF41;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.15);
}

.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: #0D0208;
  border-top: 1px solid rgba(0, 255, 65, 0.1);
}

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

.video-card {
  border-radius: 0;
  overflow: hidden;
  background: rgba(0, 255, 65, 0.02);
  border: 1px solid rgba(0, 255, 65, 0.15);
  transition: all var(--transition);
}

.video-card:hover {
  border-color: #00FF41;
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.15);
}

.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #050108;
}

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

.video-wrapper {
  cursor: pointer;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 2, 8, 0.4);
  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: #00FF41;
  filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.5));
}

.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;
}
