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

body {
  background: #0d0d0d;
  color: #fff;
  font-family: "DM Sans", sans-serif;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 50px;
  border-bottom: 1px solid #252525;
  position: relative;
}

.logo {
  font-size: 22px;
  font-weight: 800;
}

.purple-word {
  color: #9b5cff;
}

.links {
  display: flex;
  gap: 36px;
}

.links a {
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.links a:hover {
  color: #9b5cff;
  text-decoration: underline;
}

.active-link {
  color: #9b5cff !important;
}

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

.big-purple-btn {
  background: #7c3aed;
  color: #fff;
  border: none;
  padding: 11px 26px;
  border-radius: 50px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
}

.big-purple-btn:hover {
  background: #9b5cff;
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}

.round-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.mobile-menu {
  display: none;
}

.wrapper {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 200px;
  gap: 12px;
  padding: 30px 50px;
}

.box {
  background: #1a1a1e;
  border: 1px solid #252525;
  border-radius: 18px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tiny-purple {
  font-size: 11px;
  color: #9b5cff;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

.medium-title {
  font-family: "Syne", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  width: 100%;
}

.gray-text {
  font-size: 13px;
  color: #fff;
}

.small-round-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #252525;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.2s;
  flex-shrink: 0;
  text-decoration: none;
}

.small-round-btn:hover {
  background: #7c3aed;
  transform: rotate(-45deg);
}

.hollow {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.2);
  color: transparent;
}

.heading-box {
  grid-column: 1;
  grid-row: 1;
  background: #131316;
  justify-content: center;
  padding: 28px 20px;
}

.big-name {
  font-family: "Syne", sans-serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.05;
}

.proj-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.proj-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(155, 92, 255, 0.1);
  border: 1px solid rgba(155, 92, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #9b5cff;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.gov-icon {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.proj-type {
  font-size: 11px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.proj-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 12px;
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  align-content: center;
  padding: 4px 0;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #131316;
  border: 1px solid #252525;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 12px;
  color: #ccc;
  transition: border-color 0.22s, color 0.22s, background 0.22s, transform 0.22s, box-shadow 0.22s;
}

.stack-item iconify-icon {
  font-size: 15px;
  color: #9b5cff;
  flex-shrink: 0;
  transition: color 0.22s, transform 0.22s;
}

.stack-item:hover {
  border-color: rgba(155, 92, 255, 0.5);
  background: rgba(155, 92, 255, 0.08);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 14px rgba(155, 92, 255, 0.15);
}

.stack-item:hover iconify-icon {
  color: #b47fff;
  transform: scale(1.15);
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 11px;
  color: #9b5cff;
  background: rgba(155, 92, 255, 0.1);
  border: 1px solid rgba(155, 92, 255, 0.22);
  padding: 3px 10px;
  border-radius: 50px;
  cursor: default;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.chip:hover {
  background: rgba(155, 92, 255, 0.2);
  border-color: rgba(155, 92, 255, 0.5);
  transform: translateY(-1px);
}

.client-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.client-tag {
  font-size: 11px;
  color: #aaa;
  border: 1px solid #2e2e2e;
  padding: 3px 10px;
  border-radius: 50px;
}

.live-label {
  font-size: 10px;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  margin: 10px 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-label::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  flex-shrink: 0;
}

.site-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.site-link {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  background: #131316;
  border: 1px solid #252525;
  border-radius: 10px;
  padding: 8px 10px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.site-link:hover {
  border-color: rgba(155, 92, 255, 0.5);
  background: rgba(155, 92, 255, 0.07);
  transform: translateX(3px);
}

.site-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 5px #4ade80;
  flex-shrink: 0;
}

.site-name {
  font-size: 11px;
  color: #ccc;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.site-link:hover .site-name {
  color: #fff;
}

.site-arrow {
  font-size: 12px;
  color: #444;
  flex-shrink: 0;
  transition: color 0.2s;
}

.site-link:hover .site-arrow {
  color: #9b5cff;
}

.fwaha-link {
  display: flex;
  margin-bottom: 10px;
}

.stack-box {
  grid-column: 2 / 4;
  grid-row: 1;
}

.right-col {
  grid-column: 4;
  grid-row: 1 / 5;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stat-box {
  flex: 1;
  background: #131316;
  border-radius: 18px 18px 0 0;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  text-align: center;
  padding: 20px 14px;
  min-height: 200px;
}

.one-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.big-num {
  font-family: "Syne", sans-serif;
  font-size: 26px;
  font-weight: 800;
}

.tiny-label {
  font-size: 9px;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.thin-line {
  height: 1px;
  background: #252525;
  width: 100%;
}

.hire-box {
  background: #131316;
  border-radius: 0 0 18px 18px;
  border-top: 1px solid #252525;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
}

.fwaha-box {
  grid-column: 1;
  grid-row: 2;
}

.kuwait-box {
  grid-column: 2 / 4;
  grid-row: 2;
}

.globalline-box {
  grid-column: 1 / 3;
  grid-row: 3;
}

.cma-box {
  grid-column: 3;
  grid-row: 3;
  background: #131316;
}

.ratemate-box {
  grid-column: 1 / 4;
  grid-row: 4;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dot-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  50% { transform: scale(1.5); box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
}

.site-dot {
  animation: dot-breathe 2.5s ease-in-out infinite;
}

.box {
  transition: border-color 0.3s, box-shadow 0.3s;
  animation: fade-up 0.55s ease both;
}

.box:nth-child(1) { animation-delay: 0s; }
.box:nth-child(2) { animation-delay: 0.08s; }
.box:nth-child(3) { animation-delay: 0.14s; }
.box:nth-child(4) { animation-delay: 0.2s; }
.box:nth-child(5) { animation-delay: 0.26s; }
.box:nth-child(6) { animation-delay: 0.32s; }
.box:nth-child(7) { animation-delay: 0.38s; }

.box:hover {
  border-color: rgba(155, 92, 255, 0.28);
  box-shadow: 0 6px 30px rgba(155, 92, 255, 0.09);
}

.stack-box,
.fwaha-box,
.kuwait-box,
.globalline-box,
.cma-box,
.ratemate-box,
.heading-box {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.stack-box:hover,
.fwaha-box:hover,
.kuwait-box:hover,
.globalline-box:hover,
.cma-box:hover,
.ratemate-box:hover,
.heading-box:hover {
  transform: translateY(-3px);
}

.box:hover .proj-icon {
  background: rgba(155, 92, 255, 0.2);
  border-color: rgba(155, 92, 255, 0.4);
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 0 14px rgba(155, 92, 255, 0.2);
}

.small-round-btn {
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.small-round-btn:hover {
  background: #7c3aed;
  transform: rotate(-45deg);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 50px;
  border-top: 1px solid #252525;
}

.copy-text {
  font-size: 13px;
  color: #fff;
}

.purple-link {
  color: #9b5cff;
  text-decoration: none;
}

.foot-links {
  display: flex;
  gap: 28px;
}

.foot-links a {
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.foot-links a:hover {
  color: #9b5cff;
  text-decoration: underline;
}

@media (max-width: 1100px) {
  nav {
    padding: 16px 30px;
  }

  footer {
    padding: 18px 30px;
  }

  .wrapper {
    grid-template-columns: 180px 1fr 1fr 180px;
    padding: 20px 30px;
  }

  .big-name {
    font-size: 36px;
  }
}

@media (max-width: 900px) {
  nav {
    padding: 14px 24px;
  }

  footer {
    padding: 16px 24px;
  }

  .wrapper {
    grid-template-columns: 1fr 1fr;
    padding: 16px 24px;
  }

  .heading-box {
    grid-column: 1;
    grid-row: auto;
  }

  .stack-box {
    grid-column: 2;
    grid-row: auto;
  }

  .right-col {
    grid-column: 2;
    grid-row: 2 / 6;
  }

  .fwaha-box {
    grid-column: 1;
    grid-row: auto;
  }

  .kuwait-box {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .globalline-box {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .cma-box {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .ratemate-box {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .big-name {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  nav {
    padding: 14px 16px;
  }

  nav .links {
    display: none;
  }

  nav .right-side {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    position: absolute;
    top: 61px;
    left: 0;
    right: 0;
    background: #131316;
    border-bottom: 1px solid #252525;
    flex-direction: column;
    gap: 0;
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .mobile-menu a {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    padding: 16px 24px;
    border-bottom: 1px solid #1e1e1e;
    transition:
      color 0.2s,
      background 0.2s;
  }

  .mobile-menu a:hover {
    color: #9b5cff;
    background: #1a1a1e;
  }

  .menu-toggle:checked ~ .mobile-menu {
    display: flex;
    max-height: 300px;
  }

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

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

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

  footer {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    padding: 18px 16px;
  }

  .wrapper {
    grid-template-columns: 1fr;
    padding: 12px 16px;
    gap: 10px;
  }

  .heading-box,
  .stack-box,
  .fwaha-box,
  .kuwait-box,
  .globalline-box,
  .cma-box,
  .ratemate-box {
    grid-column: 1;
    grid-row: auto;
  }

  .right-col {
    grid-column: 1;
    grid-row: auto;
  }

  .stat-box {
    min-height: 160px;
  }

  .big-name {
    font-size: 32px;
  }
}

@media (max-width: 400px) {
  nav {
    padding: 12px;
  }

  .wrapper {
    padding: 10px 12px;
    gap: 8px;
  }

  footer {
    padding: 16px 12px;
  }

  .big-name {
    font-size: 28px;
  }

  .big-purple-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}
