:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card: #111827;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.1);
  --accent-soft-2: rgba(56, 189, 248, 0.12);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.4);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.8);
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.9);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

/* Reserve space for the sticky header so anchor links don't get hidden */
html {
  scroll-padding-top: 72px; /* approximate header height */
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 50%, #000 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Visible focus styles for keyboard users */
:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #111827;
  color: #e5e7eb;
  padding: 8px 12px;
  z-index: 1000;
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 8px;
}
.skip-link:focus {
  top: 8px;
}

/* Layout */

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

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #000 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .section {
    padding: 3.25rem 0;
  }
  .two-column {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.96),
    rgba(2, 6, 23, 0.88),
    transparent
  );
  border-bottom: 1px solid rgba(30, 64, 175, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.25rem;
}

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

.brand-logo {
  height: 48px;
  width: auto;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  font-size: 0.95rem;
}

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

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav a {
  position: relative;
  color: var(--muted);
  padding-bottom: 0.2rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), #22d3ee);
  transition: width 0.18s ease-out;
}

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

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

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .nav {
    gap: 1.1rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    margin-top: 0.5rem;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu a {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    width: 100%;
  }
}

/* Hero */

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

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

.hero-text h1 {
  font-size: clamp(2.4rem, 3.3vw + 1.5rem, 3.4rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
  letter-spacing: 0.01em;
}

.hero-text p {
  margin: 0 0 1.7rem;
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background 0.12s ease-out, border-color 0.12s ease-out, color 0.12s ease-out;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #ea580c);
  color: #0b1120;
  box-shadow: 0 16px 35px rgba(248, 113, 22, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(248, 113, 22, 0.45);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.55);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: rgba(248, 113, 22, 0.85);
  background: rgba(15, 23, 42, 0.9);
}

.btn.full-width {
  width: 100%;
  justify-content: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
}

.hero-meta-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
}

.hero-meta-label {
  display: block;
  color: var(--muted);
  margin-top: 0.1rem;
}

.hero-card {
  background: radial-gradient(circle at top left, #1d283a 0, #020617 55%, #000 100%);
  border-radius: 24px;
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(148, 163, 184, 0.4);
  position: relative;
  overflow: hidden;
}

.hero-card-image {
  margin: -1.7rem -1.6rem 1.2rem;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.hero-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #0b1120; /* placeholder background */
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -60%;
  background:
    radial-gradient(circle at 10% 0, rgba(56, 189, 248, 0.16), transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(248, 113, 22, 0.12), transparent 55%);
  opacity: 0.95;
  z-index: -1;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 1.1rem;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-stat-value {
  font-weight: 600;
  font-size: 0.98rem;
}

.hero-progress {
  margin-bottom: 1.3rem;
}

.hero-progress span {
  font-size: 0.76rem;
  color: var(--muted);
}

.progress-bar {
  margin: 0.6rem 0 0.35rem;
  width: 100%;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.55);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #a3e635, #facc15);
  border-radius: inherit;
}

.progress-percent {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-visuals {
  display: flex;
  flex-direction: column;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px dashed rgba(148, 163, 184, 0.6);
  padding-top: 0.8rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.hero-list li {
  position: relative;
  padding-left: 1rem;
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #22d3ee, #0ea5e9 60%, #2563eb);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
  }
  .hero {
    padding-top: 2.7rem;
  }
}

@media (max-width: 540px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
  .hero-card {
    padding: 1.5rem 1.35rem;
  }
}

/* Sections */

h2 {
  font-size: 1.7rem;
  margin: 0 0 0.7rem;
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.section-lead {
  margin: 0 0 1.9rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.96rem;
}

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

.about-card {
  background: radial-gradient(circle at top left, #020617 0, #020617 45%, #000 100%);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.75);
  font-size: 0.9rem;
}

.about-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  margin-bottom: 0.45rem;
}

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

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

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

.card {
  background: linear-gradient(145deg, #020617, #020617);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
}

.card-image {
  margin: -1.25rem -1.25rem 1rem;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.3s ease;
  background: #0b1120;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0, rgba(56, 189, 248, 0.12), transparent 50%);
  opacity: 0.7;
  pointer-events: none;
}

.card h3 {
  position: relative;
  z-index: 1;
}

.card p,
.card ul {
  position: relative;
  z-index: 1;
}

.card p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #e5e7eb;
}

.card ul li {
  margin-bottom: 0.3rem;
}

@media (max-width: 960px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.project-card {
  background: radial-gradient(circle at top left, #020617 0, #020617 45%, #000 100%);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.25rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-card);
  font-size: 0.9rem;
  overflow: hidden;
}

.project-image {
  margin: -1.2rem -1.25rem 1rem;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.project-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
  background: #0b1120;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  border: 1px solid rgba(56, 189, 248, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e0f2fe;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

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

.project-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.project-card ul li {
  margin-bottom: 0.25rem;
}

@media (max-width: 960px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Contact */

.contact-details p {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
}

.note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.contact-form {
  background: radial-gradient(circle at top left, #020617 0, #020617 50%, #000 100%);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-card);
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  color: #e5e7eb;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.12s ease-out, box-shadow 0.12s ease-out,
    background 0.12s ease-out;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.45);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
  background: #020617;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  min-height: 1rem;
}

.form-message.success {
  color: #4ade80;
}

.form-message.error {
  color: #fca5a5;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(30, 64, 175, 0.6);
  background: radial-gradient(circle at top, #020617, #000);
  padding: 1.3rem 0 1.4rem;
  margin-top: 1.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-secondary {
  color: rgba(148, 163, 184, 0.85);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

