:root {
  --bg: #0f172a;
  --bg-alt: #111b31;
  --surface: #1e293b;
  --surface-hover: #263548;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --primary: #38bdf8;
  --primary-strong: #0ea5e9;
  --accent: #a78bfa;
  --border: #334155;
  --gradient: linear-gradient(135deg, #38bdf8, #a78bfa);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

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

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

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-line {
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.logo-img {
  height: 45px;
  width: auto;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: all 0.3s ease;
}

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

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  font-size: 1.2rem;
}

.menu-toggle:hover {
  background: var(--surface-hover);
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding-top: 2rem;
}

.page-hero {
  padding: 5rem 0 3rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 60%);
  border-bottom: 1px solid var(--border);
}

.page-hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.page-kicker {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0.5rem 0 0.75rem;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.eyebrow {
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.btn {
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: #0f172a;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1.2rem;
  color: var(--muted);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  color: #0f172a;
  transform: translateY(-3px);
}

.profile-card {
  margin: 0;
  display: flex;
  justify-content: center;
}

.profile-img-wrapper {
  position: relative;
  padding: 0.5rem;
  background: var(--gradient);
  border-radius: 24px;
}

.profile-img-wrapper img {
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-content .lead {
  max-width: none;
  margin-bottom: 2.5rem;
}

.about-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.timeline-card {
  position: relative;
  padding-left: 2rem;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

.timeline-content {
  padding-left: 0.5rem;
}

.timeline-date {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

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

.card li {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.skill-card {
  text-align: center;
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.skill-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  background: var(--gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #0f172a;
}

.skill-card h3 {
  margin-bottom: 0.75rem;
}

.skill-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.project-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

.project-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.view-more {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.intro-lead {
  text-align: center;
  margin: 0 auto 2.5rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.link-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

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

.tag {
  background: var(--bg-alt);
  color: var(--primary);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.services-lead {
  text-align: center;
  margin: 0 auto 2.5rem;
}

.section-subtitle {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 3rem 0 1.5rem;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pricing-card-premium {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
}

.pricing-kicker {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

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

.pricing-price span {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.pricing-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  color: var(--muted);
}

.pricing-list li {
  display: flex;
  gap: 0.65rem;
}

.pricing-list i {
  color: var(--primary);
  margin-top: 0.2rem;
}

.pricing-cta {
  margin-top: auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.why-card h4 {
  margin-bottom: 0.5rem;
}

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

.services-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.contact-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-whatsapp {
  background: #25d366;
  color: #0f172a;
  border: 1px solid transparent;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.blog-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #0f172a;
  margin-bottom: 1rem;
}

.blog-card h3 {
  font-size: 1.1rem;
  margin: 0.75rem 0 0.5rem;
}

.blog-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section-head .lead {
  margin: 0;
  max-width: 50ch;
}

.text-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
}

.text-link:hover {
  gap: 0.6rem;
}

.contact-lead {
  text-align: center;
  max-width: none;
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info {
  padding: 2rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.contact-item i {
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-form {
  padding: 2rem;
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.btn-full {
  width: 100%;
}

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

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.footer-logo {
  height: 35px;
  border-radius: 6px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 1100px) {
  .link-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    order: 2;
  }

  .profile-card {
    order: 1;
  }

  .profile-img-wrapper img {
    margin: 0 auto;
    max-width: 280px;
  }

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

  .lead {
    margin: 0 auto;
  }

  .page-hero-content {
    flex-direction: column;
    text-align: center;
  }

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

  .timeline,
  .project-grid,
  .contact-grid,
  .pricing-grid,
  .why-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-header {
    position: relative;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    z-index: 99;
  }

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

  .site-nav a {
    padding: 0.85rem 1rem;
    text-align: center;
  }

  .services-actions {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 4rem 0;
  }

  .about-stats {
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.post-content {
  overflow-wrap: anywhere;
}

.post-content pre {
  background: var(--bg-alt);
  padding: 1rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.post-content pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  white-space: pre;
}

.post-content code {
  font-family: "Fira Code", "Consolas", monospace;
  background: var(--bg-alt);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  word-break: break-word;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

.post-content tr {
  border-bottom: 1px solid var(--border);
}

.post-content th,
.post-content td {
  text-align: left;
  padding: 0.75rem;
}

.post-content th {
  background: var(--bg-alt);
  font-weight: 600;
}

.post-content h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin: 2.25rem 0 1rem;
  line-height: 1.3;
}

.post-content h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  margin: 1.5rem 0 0.75rem;
}

.post-content p,
.post-content ul,
.post-content ol {
  margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  color: var(--muted);
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content strong {
  color: var(--text);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-article {
  padding: 2.5rem;
}

.blog-article h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 1rem 0 1.5rem;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .container {
    width: 94%;
  }

  .nav-wrap {
    min-height: 64px;
  }

  .site-nav {
    top: 100%;
    max-height: calc(100vh - 64px);
  }

  .logo-img {
    height: 38px;
  }

  .hero {
    min-height: auto;
    padding: 3rem 0;
  }

  .profile-img-wrapper img {
    max-width: 220px;
  }

  .page-hero {
    padding: 3.5rem 0 2.5rem;
  }

  .timeline-card {
    padding-left: 1.5rem;
  }

  .contact-info,
  .contact-form,
  .blog-article {
    padding: 1.5rem;
  }

  .pricing-card,
  .skill-card,
  .project-card,
  .blog-card {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .hero-actions,
  .page-hero-actions,
  .services-actions,
  .view-more,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn,
  .page-hero-actions .btn,
  .services-actions .btn,
  .view-more .btn,
  .contact-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .page-hero h1 {
    font-size: 1.9rem;
  }

  .section {
    padding: 3rem 0;
  }

  .about-stats {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .profile-img-wrapper {
    padding: 0.35rem;
  }

  .profile-img-wrapper img {
    max-width: 200px;
  }

  .post-content pre {
    padding: 0.75rem;
    font-size: 0.8rem;
  }

  .post-content ul,
  .post-content ol {
    padding-left: 1.25rem;
  }
}

@media (max-width: 360px) {
  .container {
    width: 96%;
  }

  .blog-article {
    padding: 1.25rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
}