:root {
  --bg: #08111f;
  --bg-2: #0d1b2e;
  --card: rgba(15, 23, 42, 0.72);
  --card-solid: #0f172a;
  --line: rgba(148, 163, 184, 0.14);
  --text: #e5edf8;
  --muted: #94a3b8;
  --gold: #f5c542;
  --gold-2: #ffb703;
  --gold-soft: rgba(245, 197, 66, 0.14);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 16px;
  --container: 1240px;
}



img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}


/* ========================= HERO ========================= */
.projects-hero {
  padding: 90px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.eyebrow,
.section-tag {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(245, 197, 66, 0.18);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-left h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-left h1 span {
  color: var(--gold);
}

.hero-left p {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 700px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.badge-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
  color: #dbe6f5;
}

.badge-card i {
  color: var(--gold);
}

.hero-card {
  position: relative;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(8, 17, 31, 0.92));
  border: 1px solid rgba(245, 197, 66, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.12), transparent 35%);
  pointer-events: none;
}

.project-preview {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.08);
  backdrop-filter: blur(10px);
}

.project-preview + .project-preview {
  margin-top: 16px;
}

.preview-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.2), rgba(255, 183, 3, 0.08));
  color: var(--gold);
  font-size: 1.4rem;
}

.project-preview h4 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.project-preview p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ========================= SECTIONS ========================= */
.projects-section,
.process-section,
.projects-cta {
  padding: 70px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-head.center {
  text-align: center;
  margin: 0 auto 36px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 1rem;
}

/* ========================= PROJECTS GRID ========================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(13, 27, 46, 0.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: 0.35s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 197, 66, 0.03), transparent 50%);
  opacity: 0;
  transition: 0.35s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 197, 66, 0.22);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card.featured {
  grid-column: span 2;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.project-type {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.08);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(245, 197, 66, 0.15);
}

.project-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(245, 197, 66, 0.08);
  color: var(--gold);
  font-size: 1.3rem;
}

.project-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.project-card p {
  color: var(--muted);
  margin-bottom: 16px;
}

.project-features {
  list-style: none;
  margin-bottom: 18px;
}

.project-features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: #dbe6f5;
  font-size: 0.95rem;
}

.project-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.tech {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 700;
}

.project-footer a {
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.25s ease;
}

.project-footer a:hover {
  color: var(--gold);
}

/* ========================= PROCESS ========================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-card {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}

.step {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(245, 197, 66, 0.4);
}

.process-card i {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 14px;
}

.process-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.process-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ========================= CTA ========================= */
.cta-box {
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.08), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(245, 197, 66, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--muted);
  max-width: 700px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


/* ========================= RESPONSIVE ========================= */
@media (max-width: 1100px) {
  .hero-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card.featured {
    grid-column: span 2;
  }

  .cta-box {
    display: grid;
  }

}

@media (max-width: 768px) {
  .projects-hero,
  .projects-section,
  .process-section,
  .projects-cta {
    padding: 55px 0;
  }

  .projects-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .hero-left h1 {
    font-size: 2rem;
  }



  .logo-img {
    width: 42px;
    height: 42px;
  }

  .cta-box {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .badge-card {
    width: 100%;
  }
}