
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-body: #050816;
  --bg-elevated: #050816;
  --bg-elevated-soft: #0b1020;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.18);
  --accent-strong: #fb923c;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.35);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1f2937 0, #020617 45%, #020617 100%);
  color: var(--text-main);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* NAVBAR */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.75));
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-link {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.nav-link:hover {
  background: rgba(31, 41, 55, 0.8);
  color: var(--text-main);
  transform: translateY(-1px);
}

.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.nav-button {
  background: var(--accent);
  color: #111827;
  font-weight: 600;
}

.nav-button:hover {
  background: var(--accent-strong);
  color: #111827;
}

/* HERO */
.hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.08) 0, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(249, 115, 22, 0.25) 0, transparent 55%),
    radial-gradient(circle at 50% 120%, rgba(37, 99, 235, 0.18) 0, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-left h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-left p {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
  color: #111827;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 12px 35px rgba(249, 115, 22, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 55px rgba(249, 115, 22, 0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-main);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-ghost:hover {
  background: rgba(31, 41, 55, 0.9);
  border-color: rgba(156, 163, 175, 0.9);
  transform: translateY(-1px);
}

.btn-large {
  padding-inline: 1.7rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.7rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hero-card {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.95));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.5rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 6px);
  object-fit: cover;
}

.main-card {
  transform: translateY(3px);
}

.hero-mini-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.hero-card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.35rem 0.6rem 0.5rem;
}

/* SECTIONS */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.7), #020617 65%);
}

.section-header {
  text-align: center;
  margin-bottom: 2.3rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* SERVICE CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.card {
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.25), #020617);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover::before {
  opacity: 1;
}

.card-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.card-image-wrap img {
  width: 100%;
  object-fit: cover;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.card-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-main);
}

.card-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.25rem;
}

.card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-strong);
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.project-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.45);
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
}

.project-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.project-body {
  padding: 1rem 1.1rem 1.2rem;
}

.project-body h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.project-body p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* PAGE HERO */
.page-hero {
  padding-bottom: 1.5rem;
}

.page-hero h1 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.page-hero p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* TWO COLUMN LAYOUT */
.two-col {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.image-side {
  flex: 1 1 40%;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.info-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.86rem;
  color: var(--text-muted);
}

.info-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.info-side {
  flex: 1 1 40%;
}

.info-side .muted {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* FORM */
.form-card {
  flex: 1 1 50%;
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-strong);
}

.full-width {
  width: 100%;
}

.info-side .info-card {
  margin-top: 1rem;
}

/* CTA */
.cta {
  background: linear-gradient(to right, #f97316, #fb923c);
  color: #111827;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta h2 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

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

/* FOOTER */
.footer {
  background: #020617;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding-top: 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 1.5rem;
  font-size: 0.85rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-logo span {
  font-weight: 600;
}

.footer h4 {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.footer a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  text-align: center;
  padding: 0.8rem 0 1.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    order: -1;
  }

  .projects-grid,
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .two-col {
    flex-direction: column;
  }
}

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

  .nav-container {
    justify-content: center;
  }

  .hero {
    padding-top: 3rem;
  }

  .projects-grid,
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
