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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f9fafb;
  background: #020617; /* very dark slate */
  line-height: 1.5;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.nav a {
  margin-left: 1.25rem;
  text-decoration: none;
  color: #9ca3af;
  font-size: 0.9rem;
}

.nav a:hover {
  color: #f9fafb;
}

/* Hero */
.hero {
  position: relative;
  padding: 4rem 0 3rem;
  color: #f9fafb;
}

.hero-photo {
  background-image: url("https://images.pexels.com/photos/167832/pexels-photo-167832.jpeg");
  background-size: cover;
  background-position: center;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.95));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 2.5rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.hero-text {
  flex: 2;
  min-width: 260px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.hero p {
  margin-bottom: 1.25rem;
  color: #e5e7eb;
  max-width: 30rem;
}

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

.hero-card {
  flex: 1;
  min-width: 260px;
  padding: 1.5rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 1));
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
}

.hero-card h2 {
  margin-top: 0;
}

#statusText {
  margin-top: 0.5rem;
  color: #e5e7eb;
  font-size: 0.95rem;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-link {
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.3rem;
  transition: transform 0.05s ease, box-shadow 0.05s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: #f97316;
  color: #0b1120;
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding-inline: 1.4rem;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.8);
}

.btn-ghost {
  background: transparent;
  color: #e5e7eb;
  border-radius: 999px;
  padding-inline: 1rem;
  font-size: 0.85rem;
  border: 1px solid transparent;
}

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

.btn-link {
  background: transparent;
  color: #f97316;
  padding: 0;
  border-radius: 999px;
  box-shadow: none;
}

.btn-link:hover {
  color: #fb923c;
  text-decoration: underline;
}

/* Sections */
.section {
  padding: 3.5rem 0;
  background: #020617;
}

.section-alt {
  background: #020617;
  background-image: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 1));
}

.section-header {
  margin-bottom: 1.75rem;
}

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

.section-header p {
  color: #9ca3af;
  font-size: 0.95rem;
}

.section-intro {
  color: #9ca3af;
  max-width: 32rem;
}

/* Portfolio */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
  background: transparent;
  color: #e5e7eb;
}

.filter-btn.active {
  background: #f97316;
  border-color: transparent;
  color: #0b1120;
}

.filter-btn:hover {
  border-color: #e5e7eb;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top left, #0b1120, #020617);
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.portfolio-link {
  color: inherit;
  text-decoration: none;
}

.portfolio-link:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 4px;
}

.thumb {
  position: relative;
  padding-bottom: 62%;
  background-size: cover;
  background-position: center;
  display: block;
}

.portfolio-info {
  padding: 0.9rem 1rem 1.1rem;
}

.portfolio-info h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.portfolio-info h3 a {
  color: #f9fafb;
  text-decoration: none;
}

.portfolio-info h3 a:hover {
  color: #fb923c;
}

.portfolio-info p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.75rem;
  color: #e5e7eb;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2rem;
}

.card {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), #020617);
  padding: 1.1rem 1.2rem 1.2rem;
}

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

.blog-card p {
  margin: 0.2rem 0 0.6rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.blog-card .meta {
  font-size: 0.8rem;
  color: #9ca3af;
}

.blog-preview {
  border-radius: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  padding: 1.2rem 1.3rem;
  background: rgba(15, 23, 42, 0.9);
}

.blog-preview h3 {
  margin-top: 0;
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.about-layout p {
  color: #e5e7eb;
}

.about-card {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), #020617);
  padding: 1.1rem 1.3rem;
}

.about-card h3 {
  margin-top: 0;
}

.about-card ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0.3rem 0 0;
}

.about-card li {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 0.3rem;
}

/* Contact form */
.contact-form {
  max-width: 480px;
  margin-top: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-row label {
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.form-row input,
.form-row textarea {
  font: inherit;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 0.95);
  color: #f9fafb;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.5);
}

.form-status {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #4ade80;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1rem 0;
  font-size: 0.8rem;
  color: #9ca3af;
  text-align: center;
}

/* Portfolio detail page */
.portfolio-page-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 1.2rem 0 1.6rem;
}

.portfolio-page-header .eyebrow {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  font-size: 0.8rem;
  margin: 0;
}

.portfolio-page-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.portfolio-page-header .section-intro {
  margin: 0;
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.portfolio-shot {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.85), #0b1120);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.65);
}

.portfolio-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.portfolio-shot figcaption {
  padding: 0.85rem 1rem;
  color: #e5e7eb;
  font-size: 0.95rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

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

  .nav a {
    margin-left: 0;
    margin-right: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .hero-content {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .hero {
    padding-top: 3rem;
  }

  .logo {
    font-size: 0.9rem;
  }
}

/* Blog card actions & single post layout */

.blog-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.blog-card-actions .btn-link {
  padding-right: 0.8rem;
}

.post {
  max-width: 680px;
  margin: 1.5rem auto 0;
}

.post h1 {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.post .meta {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.post-body p {
  color: #e5e7eb;
  font-size: 0.98rem;
  margin-bottom: 0.9rem;
}

.post-body p + p {
  margin-top: 0.2rem;
}
