:root {
  --primary: #b0232e;
  --primary-dark: #8f1720;
  --text: #171717;
  --muted: #666;
  --light: #f7f7f7;
  --border: #ececec;
  --dark: #121316;
  --dark-2: #1a1c20;
  --white: #fff;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.logo img {
  width: clamp(160px, 18vw, 220px);
  height: auto;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 78px 0;
}

.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 18px;
}

.section-title.small {
  font-size: clamp(28px, 3vw, 40px);
}

.section-text {
  color: var(--muted);
  max-width: 580px;
  font-size: 15px;
  line-height: 1.9;
}

.divider {
  width: 52px;
  height: 4px;
  background: var(--primary);
  margin: 18px 0 22px;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-light {
  background: #fff;
  color: var(--primary);
}

.btn-light:hover {
  background: #f2f2f2;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #efefef;
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #242424;
  position: relative;
  padding: 6px 0;
}

.nav a.active,
.nav a:hover {
  color: var(--primary);
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -16px;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s ease;
}

.nav-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.nav-toggle .pi {
  font-size: 18px;
}

.header-cta {
  flex-shrink: 0;
}

.nav-cta {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(11, 12, 15, 0.96) 0%,
      rgba(17, 18, 21, 0.94) 52%,
      rgba(20, 21, 24, 0.9) 100%
    ),
    radial-gradient(circle at 80% 20%, rgba(176, 35, 46, 0.22), transparent 30%);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.95)),
    url("../../assets/images/keyboard.png");
    background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 20% 30%, rgba(176, 35, 46, 0.08), transparent 28%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 46px;
  padding: 74px 0 54px;
}

.hero h1 {
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero h1 .accent {
  display: block;
  color: #d4343f;
}

.hero p {
  max-width: 620px;
  font-size: 20px;
  color: #d1d1d1;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-top: 8px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e4e4e4;
  font-size: 13px;
  white-space: nowrap;
}

.hero-feature .pi {
  font-size: 15px;
  color: #fff;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.laptop {
  width: min(620px, 100%);
  max-width: 100%;
  margin-left: auto;
  position: relative;
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.38));
}

.laptop-screen,
.laptop > img:first-child {
  width: 100%;
}

.phone {
  position: absolute;
  width: min(26%, 165px);
  bottom: -12px;
  right: 22px;
  z-index: 2;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.35));
}

/* Services */
.services {
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.services-copy {
  grid-row: 1 / span 2;
  padding-right: 24px;
}

.service-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 34px 22px 28px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.09);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 32px;
}

.service-card h3 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* Process */
.process {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(17, 18, 22, 0.98), rgba(22, 24, 29, 0.98)),
    radial-gradient(circle at 30% 10%, rgba(176, 35, 46, 0.12), transparent 34%);
}

.process-header {
  text-align: center;
  margin-bottom: 42px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.process-step {
  min-width: 0;
  position: relative;
  text-align: center;
  padding: 0 10px;
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 31px;
  right: -12px;
  width: 34px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}

.process-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  font-size: 24px;
}

.process-step h3 {
  margin-bottom: 10px;
}

.process-step h3 span {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.process-step p {
  color: #bbc1c8;
  font-size: 14px;
  line-height: 1.7;
}

/* Projects */
.projects-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.view-link {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.view-link:hover {
  color: var(--primary);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  min-width: 0;
}

.project-thumb {
  position: relative;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(145deg, #d6dbe2, #f2f4f7);
  box-shadow: var(--shadow);
}

.project-thumb::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 8px;
  background: linear-gradient(145deg, #0f1318, #252d38);
  z-index: 0;
}

.project-screen {
  position: absolute;
  inset: 26px 26px 34px;
  z-index: 1;
  border-radius: 6px;
  padding: 18px;
  overflow: hidden;
}

.project-screen h4 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.project-screen p {
  font-size: 12px;
  line-height: 1.6;
  max-width: 190px;
  opacity: 0.9;
}

.screen-realestate {
  color: #fff;
  background: linear-gradient(145deg, #232830, #596b7e);
}

.screen-elearn {
  color: #161616;
  background: linear-gradient(145deg, #f7f8fb, #dee5ef);
}

.screen-biz {
  color: #fff;
  background: linear-gradient(145deg, #1c2026, #424c58);
}

.screen-dashboard {
  color: #fff;
  background: linear-gradient(145deg, #121820, #1f2a38);
}

.cards-mini,
.bars,
.chart {
  position: absolute;
  right: 16px;
  bottom: 16px;
}

.cards-mini {
  display: flex;
  gap: 8px;
}

.cards-mini span {
  width: 42px;
  height: 52px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.bars,
.chart {
  display: flex;
  gap: 6px;
  align-items: flex-end;
}

.bars span,
.chart span {
  display: block;
  width: 10px;
  border-radius: 3px 3px 0 0;
}

.bars span:nth-child(1) {
  height: 26px;
  background: rgba(255, 255, 255, 0.45);
}
.bars span:nth-child(2) {
  height: 42px;
  background: rgba(255, 255, 255, 0.58);
}
.bars span:nth-child(3) {
  height: 56px;
  background: rgba(255, 255, 255, 0.72);
}
.bars span:nth-child(4) {
  height: 74px;
  background: rgba(255, 255, 255, 0.9);
}

.chart span:nth-child(1) {
  height: 22px;
  background: #4b9fff;
}
.chart span:nth-child(2) {
  height: 50px;
  background: #f65a63;
}
.chart span:nth-child(3) {
  height: 36px;
  background: #68cf7c;
}
.chart span:nth-child(4) {
  height: 62px;
  background: #ffd166;
}

.project-info {
  text-align: center;
  padding-top: 14px;
}

.project-info h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.project-info p {
  color: var(--muted);
  font-size: 14px;
}

/* CTA */
.cta {
  /* margin-top: 54px; */
  color: #fff;
  background: linear-gradient(90deg, #971924, #c22833);
}

.cta-inner {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}

.cta h2 {
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 4px;
}

.cta p {
  color: rgba(255, 255, 255, 0.86);
}

/* Footer */
.footer {
  background: #121417;
  color: #fff;
  padding-top: 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.15fr 0.9fr;
  gap: 28px;
  padding-bottom: 30px;
}

.footer-grid > div {
  min-width: 0;
}

.footer h4 {
  font-size: 15px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer p,
.footer li,
.footer a {
  color: #c0c4ca;
  font-size: 14px;
  line-height: 1.85;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer a:hover {
  color: #fff;
}

.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  display: grid;
  place-items: center;
  transition: 0.25s ease;
}

.socials a:hover {
  background: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p,
.footer-bottom a {
  color: #9aa2ad;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

/* Responsive */
@media (max-width: 1199px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 56px 0 82px;
  }

  .hero-visual {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
  }

  .laptop {
    margin: 0 auto;
    transform: none;
  }

  .phone {
    right: 36px;
    bottom: -6px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .services-copy {
    grid-column: 1 / -1;
    grid-row: auto;
    padding-right: 0;
  }

  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-step:nth-child(3)::after {
    display: none;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .header-inner {
    min-height: 76px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 120;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
    padding: 12px 10px;
    border-radius: 8px;
  }

  .nav a.active::after,
  .nav a:hover::after {
    display: none;
  }

  .nav a:hover,
  .nav a.active {
    background: #f7f7f7;
  }

  .nav-cta {
    display: inline-flex;
    margin-top: 8px;
  }

  .hero h1 {
    font-size: clamp(36px, 7vw, 56px);
  }

  .hero p {
    font-size: 18px;
  }

  .hero-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .section {
    padding: 56px 0;
  }

  .hero-inner {
    gap: 30px;
    padding: 42px 0 62px;
  }

  .hero h1 {
    line-height: 1.08;
  }

  .hero p {
    font-size: 16px;
    margin-bottom: 26px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 28px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .phone {
    width: min(32%, 130px);
    right: 8px;
    bottom: -8px;
  }

  .services-grid,
  .process-grid,
  .project-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .process-step::after {
    display: none !important;
  }

  .projects-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-thumb {
    height: 240px;
  }

  .cta-left {
    flex-direction: row;
    align-items: center;
  }

  .cta h2 {
    font-size: 28px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  .container {
    width: min(var(--container), calc(100% - 22px));
  }

  .header-inner {
    gap: 14px;
  }

  .logo img {
    width: 150px;
  }

  .btn {
    width: 100%;
  }

  .hero h1 {
    font-size: 32px;
  }

  .section-title.small {
    font-size: 30px;
  }

  .service-card {
    padding: 28px 20px;
  }

  .project-thumb {
    height: 210px;
  }

  .phone {
    width: min(34%, 110px);
    right: 2px;
    bottom: -6px;
  }

  .cta-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}

/* Contact Modal */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.76);
}

.contact-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  color: var(--text);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: 30px;
}

.contact-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: 0.25s ease;
}

.contact-modal__close:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.contact-modal__header {
  margin-bottom: 20px;
  padding-right: 44px;
}

.contact-modal__header h3 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  margin-bottom: 10px;
}

.contact-modal__header p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #d9dde3;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(176, 35, 46, 0.12);
}

.contact-form__actions {
  display: flex;
  justify-content: flex-start;
}

.contact-form__status {
  margin-bottom: 18px;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
}

.contact-form__status.success {
  background: #eaf8ef;
  color: #17613a;
  border: 1px solid #b7e3c6;
}

.contact-form__status.error {
  background: #fff0f1;
  color: #8f1720;
  border: 1px solid #f1c1c5;
}

@media (max-width: 767px) {
  .contact-modal {
    padding: 12px;
  }

  .contact-modal__dialog {
    padding: 24px 18px;
    max-height: calc(100vh - 24px);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form__actions .btn {
    width: 100%;
  }
}
