:root {
      --bg: #0b0b0c;
      --fg: #eaeaea;
      --muted: #9aa0a6;
      --accent: #58f0c8;
      --accent-2: #3aa4ff;
      --card: #121316;
      --border: rgba(255,255,255,0.08);
      --glow: radial-gradient(60% 80% at 50% 10%, rgba(88,240,200,0.12), transparent 60%),
              radial-gradient(30% 50% at 70% 0%, rgba(58,164,255,0.10), transparent 60%);
    }

    * { box-sizing: border-box; }
    html, body { height: 100%; }
    body {
      margin: 0;
      font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
      color: var(--fg);
      background: radial-gradient(1200px 800px at 50% -10%, rgba(88,240,200,0.08), transparent 60%),
                  radial-gradient(1000px 600px at 80% -20%, rgba(58,164,255,0.06), transparent 60%),
                  var(--bg);
      line-height: 1.55;
    }

    header {
      position: sticky; top: 0; z-index: 5;
      backdrop-filter: blur(6px);
      background: linear-gradient(to bottom, rgba(11,11,12,.7), rgba(11,11,12,0));
      border-bottom: 1px solid var(--border);
    }

    .wrap {
      max-width: 1200px;
      margin: 0 auto;
      padding: 16px 24px;
    }

    .section {
      padding: 56px 24px;
      border-top: 1px solid var(--border);
      background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
    }

    footer {
      padding: 28px 24px;
      color: var(--muted);
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 700;
      letter-spacing: .04em;
    }

    .brand small {
      color: var(--muted);
      font-weight: 400;
      letter-spacing: .02em;
    }

    .logo-badge {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: linear-gradient(145deg, #16181c, #0f1013);
      border: 1px solid var(--border);
      display: grid;
      place-items: center;
      box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset, 0 10px 30px rgba(0,0,0,0.45);
    }

    .logo-badge img {
      width: 24px;
      height: 24px;
      filter: drop-shadow(0 0 10px rgba(88,240,200,.25));
    }

    .hero {
      position: relative;
      min-height: 88vh;
      display: flex;
      place-items: center;
      text-align: center;
      padding: 40px 24px 48px;
      background: var(--glow);
      overflow: clip;
    }

    .hero-logo {
      width: 120px;
      height: 120px;
      margin: 0 auto 20px;
      border-radius: 28px;
      background: radial-gradient(60% 60% at 50% 30%, rgba(88,240,200,.15), transparent 70%), #0e1013;
      border: 1px solid var(--border);
      display: grid;
      place-items: center;
    }

    .hero-logo img {
      width: 68%;
      height: auto;
    }

    h1 {
      font-size: clamp(28px, 4.2vw, 48px);
      margin: 10px 0 8px;
      line-height: 1.12;
    }

    .lead {
      color: var(--muted);
      font-size: clamp(16px, 1.6vw, 18px);
    }

    .btn {
      padding: 12px 18px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: linear-gradient(180deg, #15171b, #0f1114);
      color: var(--fg);
      text-decoration: none;
      font-weight: 600;
      transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
      cursor: pointer;
    }

    .btn:hover {
      transform: translateY(-1px);
      border-color: rgba(88,240,200,.6);
      box-shadow: 0 12px 40px rgba(88,240,200,.08);
    }

    .btn.primary {
      background: radial-gradient(80% 160% at 20% 0%, rgba(88,240,200,.18), transparent 40%),
                  radial-gradient(80% 160% at 80% 0%, rgba(58,164,255,.18), transparent 40%),
                  #0f1215;
      border-color: rgba(88,240,200,.35);
    }

    .btn.secondary.close {
      position: absolute;
      top: 6px;
      right: 6px;
      background: none;
      border: none;
      color: rgba(255,255,255,0.6);
      font-size: 15px;
      line-height: 1;
      padding: 3px;
      border-radius: 4px;
      transition: color 0.2s ease, transform 0.15s ease;
    }

    .btn.secondary.close:hover {
      background: #333;
      color: #fff;
    }

    .cta {
      margin-top: 28px;
      display: flex;
      gap: 12px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .grid {
      display: grid;
      gap: 24px;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      max-width: 1100px;
      margin: 0 auto;
    }

    .card {
      padding: 22px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px;
    }

    .card h3 {
      margin: 0 0 6px;
      font-size: 18px;
    }

    input, select, textarea {
      padding: 12px 14px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: #0e1013;
      color: var(--fg);
      font-family: inherit;
      font-size: inherit;
    }

    textarea {
      resize: vertical;
      min-height: 100px;
    }

    #contact-modal {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.6);
      align-items: center;
      justify-content: center;
      z-index: 100;
      transition: opacity 0.3s ease;
    }

    #contact-modal > div {background: #111;
      padding: 24px;
      border-radius: 16px;
      max-width: 700px;
      width: 90%;
      max-height: calc(100dvh - 24px);
      overflow: auto;
      transition: all 0.3s ease;
  position: relative;
}

    #contact-modal:not([style*="none"]) {
      opacity: 1;
    }

    #contact-modal:not([style*="none"]) > div {
      transform: scale(1);
      opacity: 1;
    }

    #contact-modal[style*="none"] {
      opacity: 0;
    }

    #contact-modal[style*="none"] > div {
      transform: scale(0.9);
      opacity: 0;
    }

    #contact {
      max-width: 720px;
    }

    #contact > div {
      display: grid;
      gap: 10px;
      grid-template-columns: 1fr 1fr;
    }

    #contact select,
    #contact input[style*="grid-column"],
    #contact textarea {
      grid-column: 1 / -1;
    }

    #contact label {
      display: flex;
      gap: 8px;
      align-items: center;
      margin-top: 10px;
      color: var(--muted);
      font-size: 14px;
    }

    #contact input[type="checkbox"] {
      width: auto;
      min-height: auto;
    }

    #msg {
      color: var(--muted);
      font-size: 14px;
    }

    .noise::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='table' tableValues='0 0 .04 0'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
      opacity: .25;
      mix-blend-mode: overlay;
    }

    .pulse {
      position: fixed;
      inset: 0;
      pointer-events: none;
      background: radial-gradient(45% 35% at 50% 20%, rgba(88,240,200,.08), transparent 60%);
      filter: blur(30px);
      opacity: .6;
      animation: breathe 8s ease-in-out infinite;
    }

    @keyframes breathe {
      0%, 100% { transform: scale(1) translateY(0); }
      50% { transform: scale(1.03) translateY(6px); }
    }

    .divider {
      height: 1px;
      background: var(--border);
      margin: 24px auto;
      width: min(720px, 90%);
    }

    .tag {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: #0f1114;
      color: var(--muted);
      font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
      font-size: 12px;
    }

    a.link {
      color: var(--fg);
      opacity: .9;
      text-decoration: underline dashed rgba(88,240,200,.5);
      text-underline-offset: 4px;
    }

    @media (max-width: 768px) {
      #contact-modal {
        align-items: flex-start;
        padding-top: 40px;
      }

      #contact-modal > div {
        width: 95vw;
        max-width: 400px;
        margin: 0 auto;
        padding: 20px 16px;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }

      #contact {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
      }

      #contact input,
      #contact select,
      #contact textarea {
        width: 100% !important;
        min-height: 44px;
        padding: 10px 12px;
        font-size: 16px;
        border-radius: 8px;
      }

      #contact input[type="checkbox"] {
        width: 16px !important;
        height: 16px !important;
        min-height: auto !important;
        margin: 0 !important;
      }

      #contact textarea {
        min-height: 100px;
      }

      #contact .btn.primary {
        width: 100%;
        min-height: 46px;
        margin-top: 8px;
      }

      #contact label {
        display: flex !important;
        align-items: center !important;
        gap: 8px;
        font-size: 14px;
        margin-top: 8px;
        line-height: 1.3;
      }
    }

    @media (max-width: 360px) {
      #contact-modal > div {
        width: 98vw;
        padding: 16px 12px;
      }

      #contact {
        gap: 10px !important;
      }

      #contact input,
      #contact select,
      #contact textarea {
        min-height: 42px;
        padding: 8px 10px;
        font-size: 15px;
      }
    }
.cards-container {
  position: relative;
  width: min(960px, 92vw);
  height: auto;
  margin: 0 auto;
}

.hero-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 20px 120px rgba(0,0,0,.45);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.4s ease;
}

.hero-card:not(.active) {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
}

.hero-card.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.hero-card.leaving {
  transform: translateX(-100%);
  opacity: 0;
}

.project-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.project-image {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 0 8px;
  line-height: 1.2;
}

.project-tagline {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 20px;
  font-size: clamp(14px, 1.2vw, 16px);
}

.project-description {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.project-description p {
  margin: 0 0 12px;
}

.project-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.back-btn {
  position: absolute;
  top: 24px;
  left: 24px;
  background: linear-gradient(180deg, rgba(21, 23, 27, 0.9), rgba(15, 17, 20, 0.9));
  backdrop-filter: blur(15px);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 12px;
  z-index: 2;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.back-btn:hover {
  background: radial-gradient(100% 100% at 50% 0%, rgba(88, 240, 200, 0.15), transparent 70%),
              linear-gradient(180deg, #15171b, #0f1114);
  border-color: rgba(88, 240, 200, 0.5);
  color: var(--accent);
  box-shadow: 0 10px 40px rgba(88, 240, 200, 0.15);
}

.project-card {
    padding-top: 70px;
  }

@media (max-width: 768px) {
  .project-content {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .project-image {
    aspect-ratio: 16/9;
    max-width: 100%;
  }

  .project-features {
    justify-content: center;
  }

  .back-btn {
    top: 16px;
    left: 16px;
  }
}

@media (max-width: 480px) {
  .cards-container {
    width: 95vw;
  }

  .project-card {
    padding-top: 50px;
  }

  .project-description {
    font-size: 14px;
  }

  .back-btn {
    top: 8px;
    left: 8px;
    padding: 6px 10px;
	margin-bottom: 10px;
    font-size: 13px;
  }
}
