@import url("https://fonts.cdnfonts.com/css/satoshi");

:root {
  --brand-color: #7fff00;
  --normal-font: "Satoshi", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  display: none;
}

html,
body {
  max-width: 100%;
}

svg {
  box-sizing: content-box;
}

body {
  box-sizing: border-box;
  margin: 0;
  background-color: #0b0b0b;
  color: white;
  font-family: "Inter", sans-serif;
}

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

li {
  list-style: none;
}

::selection {
  background-color: var(--brand-color);
  color: black;
}

/* Cursor Styling*/

* {
  cursor:
    url("../assets/cursors/default.svg") 3 2,
    auto;
}

a,
button,
.btn,
.btn a,
[role="button"],
input[type="submit"],
input[type="button"],
label[for],
select,
.stat,
summary {
  cursor:
    url("../assets/cursors/pointer.svg") 16 16,
    pointer;
}

a:active,
button:active,
.btn a:active,
[role="button"]:active,
input[type="submit"]:active {
  cursor:
    url("../assets/cursors/click.svg") 12 12,
    pointer;
}

input[type="text"],
input[type="email"],
input[type="search"],
textarea,
[contenteditable="true"] {
  cursor:
    url("../assets/cursors/text.svg") 7 13,
    text;
}

.vertical-text {
  cursor:
    url("../assets/cursors/vertical-text.svg") 13 7,
    vertical-text;
}

.draggable,
[draggable="true"] {
  cursor:
    url("../assets/cursors/grab.svg") 12 12,
    grab;
}

.draggable:active,
[draggable="true"]:active,
.dragging {
  cursor:
    url("../assets/cursors/grabbing.svg") 12 12,
    grabbing;
}

.movable {
  cursor:
    url("../assets/cursors/move.svg") 12 12,
    move;
}

button:disabled,
input:disabled,
.btn.disabled,
.disabled {
  cursor:
    url("../assets/cursors/not-allowed.svg") 12 12,
    not-allowed;
}

.no-drop {
  cursor:
    url("../assets/cursors/no-drop.svg") 3 2,
    no-drop;
}

[title],
.has-tooltip,
.help {
  cursor:
    url("../assets/cursors/help.svg") 2 2,
    help;
}

.loading,
.is-waiting {
  cursor:
    url("../assets/cursors/wait.svg") 12 12,
    wait;
}

.is-progress {
  cursor:
    url("../assets/cursors/progress.svg") 2 18,
    progress;
}

/* Precision tools */
.crosshair,
canvas.tool-active {
  cursor:
    url("../assets/cursors/crosshair.svg") 12 12,
    crosshair;
}

.cell,
table td,
table th {
  cursor:
    url("../assets/cursors/cell.svg") 12 12,
    cell;
}

/* Zoom */
.zoomable,
.zoom-in {
  cursor:
    url("../assets/cursors/zoom-in.svg") 11 11,
    zoom-in;
}

.zoomed,
.zoom-out {
  cursor:
    url("../assets/cursors/zoom-out.svg") 11 11,
    zoom-out;
}

/* Resize handles */
.resize-n,
.resize-s,
.resize-ns {
  cursor:
    url("../assets/cursors/ns-resize.svg") 9 13,
    ns-resize;
}

.resize-e,
.resize-w,
.resize-ew {
  cursor:
    url("../assets/cursors/ew-resize.svg") 13 9,
    ew-resize;
}

.resize-ne,
.resize-sw,
.resize-nesw {
  cursor:
    url("../assets/cursors/nesw-resize.svg") 12 12,
    nesw-resize;
}

.resize-nw,
.resize-se,
.resize-nwse {
  cursor:
    url("../assets/cursors/nwse-resize.svg") 12 12,
    nwse-resize;
}

.resize-col,
th.resizable {
  cursor:
    url("../assets/cursors/col-resize.svg") 10 12,
    col-resize;
}

.resize-row,
tr.resizable {
  cursor:
    url("../assets/cursors/row-resize.svg") 12 10,
    row-resize;
}

.scroll-all,
.pannable {
  cursor:
    url("../assets/cursors/all-scroll.svg") 13 13,
    all-scroll;
}

/* Copy / alias / context menu */
.copy-action,
[data-action="copy"] {
  cursor:
    url("../assets/cursors/copy.svg") 3 2,
    copy;
}

.alias-action,
[data-action="alias"] {
  cursor:
    url("../assets/cursors/alias.svg") 3 2,
    alias;
}

[data-context-menu],
.has-context-menu {
  cursor:
    url("../assets/cursors/context-menu.svg") 3 2,
    context-menu;
}

/* cursor:
    url("../assets/cursors/click.svg") 16 16,
    pointer; */

.compHero .hero {
  background: url("../assets/svg/heroBg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: calc(10px + 5vw) 0;
  text-align: center;
  margin-top: calc(10px - 5vw);
}

.compHero .hero h2 {
  font-size: calc(10px + 0.8vw);
  text-transform: uppercase;
}

.compHero .hero p {
  color: gray;
  font-size: calc(10px + 0.3vw);
  margin-top: -0.5rem;
}

/* ProSection */

.projects {
  padding: calc(10px + 1vw) calc(10px + 1vw);
  margin-top: calc(10px + 3vw);
  position: relative;
}

.proSection {
  display: grid;
  gap: calc(15px + 1vw);
  margin-top: calc(10px + 1vw);
  grid-template-columns: repeat(4, 1fr);
}

.proSection .card {
  border: 2px solid rgb(60, 60, 60);
  border-radius: 20px;
  background: rgb(28, 28, 28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
  animation: cardFadeIn 0.6s ease forwards;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.proSection .card:nth-child(1) {
  animation-delay: 0.05s;
}

.proSection .card:nth-child(2) {
  animation-delay: 0.2s;
}

.proSection .card:nth-child(3) {
  animation-delay: 0.35s;
}

.proSection .card:hover {
  transform: translateY(-10px);
  border-color: var(--brand-color);
  box-shadow: 0 18px 40px rgba(113, 218, 8, 0.15);
}

.proSection .card .imgWrap {
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.proSection .card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.proSection .card:hover img {
  transform: scale(1.08);
}

.card .inside {
  padding: calc(10px + 0.6vw) calc(10px + 0.8vw);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.card .inside h3 {
  text-transform: uppercase;
  color: rgb(230, 230, 230);
  font-size: calc(10px + 0.6vw);
  margin: 0;
  margin: 0.4rem 0;
}

.card .label {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card .label h4 {
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  font-size: calc(9px + 0.15vw);
  color: var(--brand-color);
  background: rgba(113, 218, 8, 0.1);
  border: 1px solid rgba(113, 218, 8, 0.35);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.proSection .card:hover .label h4 {
  background: rgba(113, 218, 8, 0.2);
  transform: translateY(-2px);
  cursor:
    url("../assets/cursors/click.svg") 16 16,
    pointer;
}

.card .inside p {
  color: rgb(150, 150, 150);
  font-size: calc(10px + 0.15vw);
  line-height: 1.6;
  margin: 0;
  margin: 0.5rem 0;
}

.card .inside a {
  margin-top: auto;
  align-self: flex-start;
  text-transform: uppercase;
  font-weight: 600;
  font-size: calc(10px + 0.15vw);
  color: var(--brand-color);
  border: 2px solid var(--brand-color);
  padding: 0.6rem 1.3rem;
  border-radius: 30px;
  background: transparent;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
  display: flex;
  gap: 0.2rem;
  align-items: center;
}

.card .inside a svg {
  fill: var(--brand-color);
  width: calc(10px + 0.6vw);
}

.card .inside a:hover {
  background: var(--brand-color);
  color: black;
  transform: translateY(-2px);
  cursor:
    url("../assets/cursors/click.svg") 16 16,
    pointer;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .proSection .card {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .proSection .card img,
  .proSection .card,
  .card .label h4,
  .card .inside a {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .proSection {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: calc(12px + 0.6vw);
  }

  .card .inside {
    padding: 1rem;
  }

  .ctaSec svg {
    display: none;
  }
}

@media (max-width: 600px) {
  .proSection {
    grid-template-columns: 1fr;
  }

  .proSection .card img {
    aspect-ratio: 16 / 9;
  }

  .card .inside h3 {
    font-size: 18px;
  }

  .card .inside a {
    text-align: center;
  }

  .projects .rightTxt {
    visibility: hidden;
    width: 0;
    margin: 0;
    padding: 0;
  }

  .projects .mobileTxt {
    justify-content: center;
    color: #73d015;
    margin-top: 1rem;
    visibility: visible;
    text-transform: uppercase;
  }
}

/* CtaSec */

.ctaSec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem calc(10px + 10vw) 1.5rem;
  background-color: oklch(28.908% 0.00003 271.152);
  color: white;
  margin-top: 2rem;
  border-radius: 20px;
}

.ctaSec .txt {
  font-size: calc(10px + 0.4vw);
  text-transform: uppercase;
}

.ctaSec .txt p {
  font-size: calc(10px + 0.2vw);
  margin-top: -0.8rem;
  text-transform: none;
  color: rgb(150, 150, 150);
  margin-bottom: 2rem;
}

.ctaSec .txt a {
  color: black;
  background-color: white;
  padding: 0.6rem;
  border-radius: 10px;
  font-size: calc(10px + 0.2vw);
  font-weight: 700;
  border: 2px solid white;
}

.ctaSec svg {
  width: calc(10px + 5vw);
  fill: white;
}

.ctaSec .txt a:hover {
  background-color: transparent;
  color: white;
}
