/* ==========
   Base
========== */

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

:root {
  --bg: #050509;
  --bg-alt: #0a0710;
  --surface: #111018;
  --accent: #8b1c2f;
  --accent-soft: #b3263f;
  --text: #f9fafb;
  --text-muted: #cbd5f5;
  --border-subtle: rgba(148, 163, 184, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1f1724 0, transparent 60%),
    radial-gradient(circle at bottom right, #120910 0, transparent 55%),
    var(--bg);
  color: var(--text);
}

body.no-scroll {
  overflow: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========
   Header
========== */

.main-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 5, 9, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #f8fafc 0, transparent 60%),
    linear-gradient(135deg, var(--accent-soft), var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  text-transform: uppercase;
}

.logo-words {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.98rem;
}

.logo-sub {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Nav links */

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
}

.nav-link {
  text-decoration: none;
  color: #e5e7eb;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

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

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #ffffff;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* ==========
   Hero
========== */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

/* animated background shapes */

.hero-bg {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 1;
}

.hero-bg-1 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  top: -40px;
  left: -80px;
  animation: float1 22s ease-in-out infinite alternate;
}

.hero-bg-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #1e293b, transparent 60%);
  bottom: -80px;
  right: -40px;
  animation: float2 26s ease-in-out infinite alternate;
}

@keyframes float1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(10px, -20px) scale(1.05); }
}

@keyframes float2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-30px, -10px) scale(1.1); }
  100% { transform: translate(-5px, 25px) scale(1.03); }
}

/* hero content */

.hero-tag {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 16px;
}

.accent {
  color: var(--accent-soft);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 12px;
}

.hero-subtitle.extra {
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

/* Buttons */

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(139, 28, 47, 0.7);
}

.btn-primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #e5e7eb;
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  border-color: #e5e7eb;
  background: rgba(17, 24, 39, 0.9);
  transform: translateY(-1px);
}

/* Hero socials */

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

.hero-socials a {
  color: #e5e7eb;
  text-decoration: none;
}

.hero-socials a:hover {
  color: #ffffff;
}

/* Hero right / profile */

.hero-right {
  display: flex;
  justify-content: center;
}

.profile-frame {
  position: relative;
  width: 270px;
  max-width: 100%;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid rgba(248, 250, 252, 0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.75);
  background: radial-gradient(circle at top, rgba(248, 250, 252, 0.12), transparent);
}

.profile-frame::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.12), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(139, 28, 47, 0.5), transparent 60%);
  mix-blend-mode: soft-light;
}

.profile-frame img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========
   Sections
========== */

.section {
  padding: 70px 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* Skills */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.skill-card {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(190, 24, 59, 0.65);
  font-size: 0.9rem;
  text-align: center;
}

/* ==========
   Projects
========== */

.projects-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 8px;
}

.project-card {
  padding: 16px 18px 18px;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(139, 28, 47, 0.2), transparent),
    var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.project-image-wrapper {
  margin: -8px -10px 10px;
}

.project-image-button {
  position: relative;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
}

.project-image-button img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.project-image-button:hover img {
  transform: scale(1.02);
}

.project-image-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.project-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.project-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.project-meta {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ==========
   Pricing
========== */

.pricing-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.pricing-card {
  padding: 20px 20px 22px;
  border-radius: 20px;
  background: radial-gradient(circle at top left, rgba(139, 28, 47, 0.25), transparent),
    rgba(10, 12, 24, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}

.pricing-header {
  margin-bottom: 16px;
}

.pricing-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.5);
  margin-bottom: 8px;
}

.pricing-label.secondary {
  background: rgba(148, 163, 184, 0.18);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.6);
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.pricing-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.pricing-price {
  font-size: 2.1rem;
  font-weight: 700;
}

.pricing-term {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-commitment {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 14px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 14px;
  padding-left: 0;
}

.pricing-features li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}

.pricing-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-soft);
}

.pricing-discounts {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 14px;
  border: 1px dashed rgba(190, 24, 59, 0.7);
  padding: 9px 11px;
  margin-bottom: 12px;
}

.pricing-discounts h4 {
  font-size: 0.93rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.pricing-discounts p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

/* smaller look for starter promo box */
.pricing-discounts-starter {
  border-style: solid;
  border-color: rgba(148, 163, 184, 0.6);
}

.pricing-payments {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* trust / explainer blocks */

.pricing-why,
.pricing-proof {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 9px 11px;
  margin-bottom: 10px;
}

.pricing-why h4,
.pricing-proof h4 {
  font-size: 0.93rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.pricing-why ul,
.pricing-proof ul {
  list-style: none;
  padding-left: 0;
}

.pricing-why li,
.pricing-proof li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  margin-bottom: 3px;
}

.pricing-why li::before,
.pricing-proof li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: var(--accent-soft);
}

.pricing-proof p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pricing-cta {
  width: 100%;
  justify-content: center;
  margin-bottom: 6px;
}

.pricing-footnote {
  font-size: 0.83rem;
  color: #9ca3af;
}

.pricing-card-secondary {
  opacity: 0.94;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: stretch;
  }

  .pricing-card {
    padding: 24px 24px 24px;
  }

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

/* ==========
   Contact
========== */

.contact-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #9ca3af;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent-soft);
}

.contact-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-note a {
  color: var(--accent-soft);
  text-decoration: none;
}

.contact-note a:hover {
  text-decoration: underline;
}

/* ==========
   Gallery / Lightbox
========== */

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-modal.open {
  display: flex;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.gallery-dialog {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  width: 92vw;
  max-height: 90vh;
  background: #020617;
  border-radius: 20px;
  padding: 16px 18px 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
}

.gallery-image-frame {
  position: relative;
  flex: 1;
  min-height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.gallery-image.active {
  opacity: 1;
  position: relative;
}

.gallery-caption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #e5e7eb;
}

/* gallery controls */

.gallery-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  font-size: 1.2rem;
  cursor: pointer;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

/* ==========
   Footer
========== */

.footer {
  padding: 20px 0 30px;
  background: #03040a;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========
   Responsive
========== */

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
  }

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

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left {
    order: 2;
  }

  .hero-right {
    order: 1;
    margin-bottom: 18px;
  }

  .hero-subtitle,
  .hero-subtitle.extra {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-socials {
    text-align: center;
  }

  .section-inner {
    padding-inline: 4px;
  }

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

  .logo-sub {
    font-size: 0.7rem;
  }

  .gallery-dialog {
    width: 94vw;
    padding: 14px 14px 16px;
  }

  .gallery-prev {
    left: 6px;
  }

  .gallery-next {
    right: 6px;
  }
}
