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

:root {
  --bg: #050608;
  --bg-alt: #0d1015;
  --card: #151922;
  --accent: #d5b46a;
  --accent-soft: rgba(213, 180, 106, 0.14);
  --text: #f7f7f7;
  --muted: #a1a7b5;
  --border-subtle: #262b36;
  --radius: 10px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #141824 0, #050608 50%, #020307 100%);
  color: var(--text);
  line-height: 1.5;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 6, 8, 0.95), rgba(5, 6, 8, 0.8), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  background: radial-gradient(circle at 30% 0, rgba(213, 180, 106, 0.5), transparent 60%);
}

.logo-text {
  font-size: 0.95rem;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.1rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 1rem;
}

/* Hero */

.hero {
  padding: 3.5rem 0 3rem;
}

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

.hero-text h1 {
  font-size: clamp(2.4rem, 3vw, 3rem);
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.hero-text p {
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

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

.btn {
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #f4d89b);
  color: #1a1306;
}

.btn.ghost {
  border-color: var(--border-subtle);
  color: var(--text);
  background: rgba(15, 16, 20, 0.9);
}

.hero-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-card {
  background: radial-gradient(circle at top left, rgba(213, 180, 106, 0.17), transparent 55%),
              radial-gradient(circle at bottom, #0c0f17, #050608);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--accent-soft);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.hero-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.hero-card p {
  margin-top: 0;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.4rem;
}

.hero-phone,
.hero-email {
  display: block;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 0.2rem;
}

.hero-phone {
  color: var(--text);
  font-weight: 500;
}

.hero-email {
  color: var(--muted);
}

/* Sections */

.section {
  padding: 3rem 0;
}

.section.alt {
  background: radial-gradient(circle at top, #111522, #06070b 65%);
}

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

.section-intro {
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}

/* Grids & Cards */

.grid {
  display: grid;
  gap: 1.5rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: rgba(11, 12, 17, 0.95);
  border-radius: var(--radius);
  padding: 1.1rem 1rem 1.2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.highlight {
  background: rgba(5, 6, 8, 0.9);
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--accent-soft);
}

.highlight-number {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
}

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

/* Projects */

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-list a {
  color: inherit;
  text-decoration: none;
}

.contact-form {
  background: rgba(10, 11, 15, 0.95);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem 1.4rem;
  border: 1px dashed var(--border-subtle);
}

.field {
  margin-bottom: 0.8rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: #05070a;
  color: var(--text);
  padding: 0.5rem 0.55rem;
  font: inherit;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5f6472;
}

.field textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 0 1.4rem;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 800px) {
  .hero-inner,
  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-card {
    order: -1;
  }

  .nav {
    position: absolute;
    top: 54px;
    right: 16px;
    background: rgba(5, 6, 10, 0.98);
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    padding: 0.35rem 0.8rem;
    gap: 0.75rem;
    display: none;
  }

  .nav.nav-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-inner {
    gap: 1.7rem;
  }
}
