:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #111827;
  --navy: #0f172a;
  --muted: #64748b;
  --line: #e5edf3;
  --green: #19b86a;
  --green-dark: #0f8a4f;
  --green-soft: #e9fbf2;
  --amber: #f59e0b;
  --shadow: 0 18px 52px rgba(15, 23, 42, 0.08);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 82px 0;
  scroll-margin-top: 90px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(14px);
}

.navbar {
  width: min(100% - 40px, var(--container));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 76px;
  height: 44px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-menu a {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--green);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  border-radius: 999px;
}

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

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

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

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  padding: 118px 0 96px;
  overflow: hidden;
  background: var(--navy);
}

.hero-banner,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: saturate(0.95) contrast(1.08);
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.78) 38%, rgba(15, 23, 42, 0.22) 72%, rgba(15, 23, 42, 0.08) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.62) 100%);
}

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

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(44px, 5.3vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

p {
  color: var(--muted);
}

.hero-lede {
  max-width: 620px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 24px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 14px 34px rgba(25, 184, 106, 0.28);
}

.btn-secondary {
  color: var(--navy);
  background: var(--surface);
  border-color: var(--line);
}

.hero .hero-eyebrow {
  color: #67e8a6;
}

.hero h1 {
  color: #ffffff;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.hero-lede {
  color: rgba(255, 255, 255, 0.82);
}

.hero .btn-primary {
  color: #07111f;
  background: #67e8a6;
  box-shadow: 0 18px 44px rgba(25, 184, 106, 0.24);
}

.hero .btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-proof span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-proof strong {
  color: #67e8a6;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hero-tags,
.tool-list,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tool-list span,
.project-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.hero-tags span::before,
.tool-list span::before,
.project-tags span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--green);
  border-radius: 50%;
}

.feature-cards,
.tools,
.portfolio,
.contact {
  background: var(--surface-soft);
}

.card-grid,
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.mini-card,
.reason-card,
.service-card,
.portfolio-card,
.testimonial-card,
.contact-card,
.contact-form,
.policy-card,
.stat-card,
.freelancer-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mini-card {
  min-height: 188px;
  padding: 28px;
  text-align: center;
}

.mini-card h2 {
  font-size: 19px;
}

.card-icon,
.reason-card span,
.service-card span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 12px;
  color: var(--green);
  font-weight: 900;
  background: var(--green-soft);
  border-radius: 7px;
}

.profile-band {
  padding: 76px 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(25, 184, 106, 0.1), transparent 26%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.freelancer-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: stretch;
}

.freelancer-photo {
  min-height: 360px;
  background: var(--navy);
}

.freelancer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.freelancer-info {
  display: grid;
  align-content: center;
  padding: 36px;
}

.freelancer-info h2 {
  margin-bottom: 10px;
  color: var(--green);
}

.freelancer-info p {
  max-width: 460px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.profile-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.profile-actions a:first-child {
  color: #ffffff;
  border-color: var(--green);
  background: var(--green);
}

.profile-stats {
  display: grid;
  gap: 16px;
}

.stat-card {
  min-height: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  row-gap: 4px;
  align-content: center;
  padding: 26px;
  text-align: left;
}

.stat-card span {
  grid-row: 1 / 3;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  border-radius: 50%;
  background: var(--green-soft);
}

.stat-card strong {
  display: block;
  color: var(--navy);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.stat-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.section-center {
  max-width: 740px;
  margin: 0 auto 42px;
  text-align: center;
}

.tool-list {
  justify-content: center;
  margin-top: 26px;
}

.why {
  background: #ffffff;
}

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

.reason-card {
  padding: 28px;
}

.services {
  background: #ffffff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 170px;
  padding: 24px;
  text-align: center;
}

.service-card h3 {
  font-size: 17px;
}

.service-card p,
.mini-card p,
.reason-card p,
.portfolio-card p,
.testimonial-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
  margin-bottom: 42px;
}

.project-media {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.project-copy h3 {
  font-size: clamp(26px, 4vw, 40px);
}

.project-meta {
  margin-top: 22px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.portfolio-card {
  overflow: hidden;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.portfolio-card h3,
.portfolio-card p {
  padding: 0 22px;
}

.portfolio-card h3 {
  padding-top: 20px;
}

.portfolio-card p {
  padding-bottom: 24px;
}

.testimonials {
  background: #ffffff;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 850px;
  margin: 0 auto;
}

.testimonial-card {
  margin: 0;
  padding: 30px;
}

.testimonial-card blockquote {
  margin: 0 0 22px;
  color: #475569;
  font-size: 16px;
}

.testimonial-card figcaption {
  color: var(--green);
  font-weight: 900;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.contact-card {
  min-height: 138px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
}

.contact-card strong {
  color: var(--navy);
}

.contact-card small {
  max-width: 100%;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  word-break: break-word;
}

.brand-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  padding: 8px;
  border-radius: 50%;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(226, 232, 240, 0.95)) border-box;
  border: 2px solid transparent;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.1),
    inset 0 0 0 1px rgba(226, 232, 240, 0.7);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.icon-email {
  padding: 9px;
}

.icon-whatsapp {
  padding: 5px;
}

.icon-upwork,
.icon-fiverr {
  padding: 4px;
}

.contact-form {
  max-width: 780px;
  display: grid;
  gap: 18px;
  margin: 0 auto;
  padding: 30px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 14px 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  outline: none;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(25, 184, 106, 0.12);
}

.form-row.has-error input,
.form-row.has-error textarea,
.form-row.has-error select {
  border-color: #dc2626;
}

.form-submit {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 800;
}

.policy-grid-section {
  background: #ffffff;
}

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

.policy-card {
  padding: 34px;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 45;
  display: grid;
  gap: 10px;
}

.floating-actions a {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
}

.floating-actions .brand-icon {
  width: 42px;
  height: 42px;
  padding: 7px;
  border-width: 1px;
  box-shadow: none;
}

.floating-actions .icon-email {
  padding: 8px;
}

.floating-actions .icon-whatsapp {
  padding: 4px;
}

.floating-actions .icon-upwork,
.floating-actions .icon-fiverr {
  padding: 3px;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 26px;
  z-index: 45;
  width: 44px;
  height: 44px;
  color: #ffffff;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(25, 184, 106, 0.26);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-footer {
  padding: 52px 0;
  color: #ffffff;
  background: var(--navy);
  text-align: center;
}

.footer-inner img {
  width: 92px;
  height: 52px;
  object-fit: contain;
  margin: 0 auto 16px;
  background: #ffffff;
  border-radius: 6px;
}

.site-footer h2 {
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 26px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 22px 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.copyright {
  margin-bottom: 0;
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .hero-grid,
  .profile-grid,
  .featured-project {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .service-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .container,
  .navbar {
    width: min(100% - 28px, var(--container));
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 74px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .menu-open .nav-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 12px;
  }

  .section {
    padding: 66px 0;
  }

  .hero {
    min-height: auto;
    padding: 86px 0 66px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.86) 0%, rgba(15, 23, 42, 0.76) 58%, rgba(15, 23, 42, 0.9) 100%);
  }

  .hero-banner {
    object-position: 62% center;
  }

  .card-grid,
  .reason-grid,
  .service-grid,
  .portfolio-grid,
  .testimonial-grid,
  .contact-cards,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .floating-actions {
    right: auto;
    left: 50%;
    bottom: 12px;
    display: flex;
    transform: translateX(-50%);
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(12px);
  }

  .floating-actions a {
    width: 44px;
    height: 44px;
    box-shadow: none;
  }

  .floating-actions .brand-icon {
    width: 34px;
    height: 34px;
  }

  .back-to-top {
    right: 14px;
    bottom: 76px;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .contact-form,
  .policy-card {
    padding: 24px;
  }

  .freelancer-card {
    grid-template-columns: 1fr;
  }

  .freelancer-photo {
    min-height: 320px;
  }

  .freelancer-info {
    padding: 26px;
  }

  .stat-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .stat-card span {
    grid-row: auto;
    margin: 0 auto 8px;
  }
}
