:root {
  --bg: #050814;
  --bg-alt: #0b0f1f;
  --card: #0f172a;
  --accent: #ff6b3d;
  --accent-soft: rgba(255, 107, 61, 0.12);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2933;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Global reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 45%);
  color: var(--text);
  line-height: 1.6;
}

/* Layout helpers */
.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding: 5rem 0 4rem;
}

.section-alt {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
}

/* Header / Navbar */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.9),
    rgba(2, 6, 23, 0.6),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.logo-mark {
  height: 32px;
  width: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  background: radial-gradient(circle at top, #111827 0, #020617 70%);
}

.logo-text span:last-child {
  color: var(--accent);
}

.nav {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
  border-radius: 999px;
}

/* Hero */
.hero {
  padding: 5.5rem 0 4rem;
}

.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw + 1rem, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-sub {
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 1.6rem;
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-meta span {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.8);
}

/* Hero card */
.hero-card {
  background: radial-gradient(circle at top, #111827 0, #020617 65%);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
}

.hero-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.avatar-circle {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #1f2937 0, #020617 70%);
  font-size: 1.9rem;
  font-weight: 600;
}

.hero-card-body {
  text-align: center;
}

.hero-card-body h2 {
  font-size: 1.1rem;
}

.hero-card-body p {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.hero-stats {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.hero-stats li {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 0.9rem;
  padding: 0.6rem 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  flex: 1;
}

.stat-number {
  font-weight: 600;
  font-size: 0.95rem;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #ff7b54, #ff6b3d);
  color: #0b1020;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.6);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.75);
}

.ghost-btn {
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
}

.ghost-btn:hover {
  background: rgba(15, 23, 42, 1);
}

.full-width {
  width: 100%;
}

/* Section headers */
.section-header {
  margin-bottom: 2.4rem;
  max-width: 38rem;
}

.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.section-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

/* About */
.about-container {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2.4rem;
}

.about-grid h3 {
  margin-bottom: 0.6rem;
}

/* Tags */
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list li {
  font-size: 0.78rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.card-list {
  list-style: none;
  font-size: 0.8rem;
  color: var(--muted);
}

.card-list li::before {
  content: "• ";
  color: var(--accent);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.project-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.project-thumb {
  height: 150px;
  background-size: cover;
  background-position: center;
}

/* Placeholder gradient thumbs */
.project-thumb-1 {
  background-image: linear-gradient(135deg, #ff6b3d, #111827);
}

.project-thumb-2 {
  background-image: linear-gradient(135deg, #4f46e5, #111827);
}

.project-thumb-3 {
  background-image: linear-gradient(135deg, #22c55e, #111827);
}

.project-body {
  padding: 1rem 0.9rem 1.1rem;
}

.project-body h3 {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.project-body p {
  font-size: 0.82rem;
  color: var(--muted);
}

.project-meta {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #e5e7eb;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.testimonial-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.testimonial-text {
  font-size: 0.86rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.testimonial-name {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Contact */
.contact-container {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2rem;
}

.contact-form {
  background: rgba(15, 23, 42, 0.98);
  padding: 1.4rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

textarea {
  resize: vertical;
}

.form-note {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.contact-details {
  padding-top: 0.4rem;
}

.contact-details h3 {
  margin-bottom: 0.8rem;
}

.contact-list {
  list-style: none;
  font-size: 0.84rem;
  color: var(--muted);
}

.contact-list li + li {
  margin-top: 0.3rem;
}

.contact-list span {
  color: var(--text);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 1.3rem 0 1.4rem;
  background: #020617;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.back-to-top {
  color: var(--muted);
  text-decoration: none;
}

.back-to-top:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  }

  .cards-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-list {
    position: absolute;
    inset-inline: 1rem;
    top: 56px;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 0.9rem;
    padding: 0.8rem 1rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
    transform-origin: top;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.16s ease, opacity 0.16s ease;
  }

  .nav-list.open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .nav-toggle {
    display: block;
  }

  .nav-cta {
    margin-top: 0.2rem;
  }

  .hero-container {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .about-grid,
  .cards-grid,
  .projects-grid,
  .testimonials-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
