*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: #ffffff;
  line-height: 1.5;
  overflow-x: hidden;
  background: #000000;
  position: relative;
}


/* ================================
   CRAZY BACKGROUND BASE
================================ */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -6;

  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(0, 255, 84, 0.32),
      transparent 28%
    ),
    radial-gradient(
      circle at 85% 25%,
      rgba(24, 197, 131, 0.28),
      transparent 30%
    ),
    radial-gradient(
      circle at 50% 85%,
      rgba(146, 154, 52, 0.24),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #000000 0%,
      #03150b 30%,
      #000000 70%,
      #06140a 100%
    );

  animation: backgroundPulse 10s ease-in-out infinite alternate;
}


/* ================================
   ANIMATED GRID
================================ */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;

  background-image:
    linear-gradient(
      rgba(0, 255, 84, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(0, 255, 84, 0.06) 1px,
      transparent 1px
    );

  background-size: 70px 70px;

  mask-image:
    linear-gradient(
      to bottom,
      transparent,
      black 20%,
      black 80%,
      transparent
    );

  animation: gridMove 18s linear infinite;
}


/* ================================
   BACKGROUND WRAPPER
================================ */

.background {
  position: fixed;
  inset: 0;
  z-index: -4;
  overflow: hidden;
  pointer-events: none;
}


/* ================================
   LIQUID BLOBS
================================ */

.shape {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(75px);
  opacity: 0.75;
  mix-blend-mode: screen;
}

.shape-one {
  top: -120px;
  left: -100px;

  background:
    radial-gradient(
      circle,
      #00ff54 0%,
      rgba(0, 255, 84, 0.3) 45%,
      transparent 70%
    );

  animation:
    liquidOne 14s ease-in-out infinite;
}

.shape-two {
  top: 28%;
  right: -140px;

  background:
    radial-gradient(
      circle,
      #18c583 0%,
      rgba(24, 197, 131, 0.35) 45%,
      transparent 70%
    );

  animation:
    liquidTwo 18s ease-in-out infinite;
}

.shape-three {
  bottom: -140px;
  left: 34%;

  background:
    radial-gradient(
      circle,
      #929A34 0%,
      rgba(146, 154, 52, 0.28) 45%,
      transparent 70%
    );

  animation:
    liquidThree 22s ease-in-out infinite;
}


/* ================================
   EXTRA ENERGY RINGS
================================ */

.background::before,
.background::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 84, 0.18);
}

.background::before {
  width: 700px;
  height: 700px;
  top: 10%;
  left: 50%;

  transform: translateX(-50%);

  box-shadow:
    0 0 50px rgba(0, 255, 84, 0.12),
    inset 0 0 60px rgba(24, 197, 131, 0.08);

  animation: ringSpinOne 22s linear infinite;
}

.background::after {
  width: 1000px;
  height: 1000px;
  bottom: -45%;
  right: -20%;

  border-color: rgba(146, 154, 52, 0.14);

  box-shadow:
    0 0 80px rgba(146, 154, 52, 0.08);

  animation: ringSpinTwo 30s linear infinite reverse;
}


/* ================================
   HEADER
================================ */

.site-header {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 30px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: relative;
  z-index: 5;
}

.logo {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;

  text-shadow:
    0 0 20px rgba(0, 255, 84, 0.4);
}

.logo span {
  color: #00ff54;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.top-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}

.top-nav a:hover {
  color: #00ff54;

  text-shadow:
    0 0 12px rgba(0, 255, 84, 0.8);
}


/* ================================
   HERO
================================ */

.hero {
  width: min(1200px, 92%);
  min-height: 72vh;
  margin: 0 auto;
  padding: 60px 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  position: relative;
  z-index: 3;
}

.hero-small {
  margin-bottom: 20px;

  font-size: 0.75rem;
  letter-spacing: 4px;

  color: rgba(255, 255, 255, 0.55);
}

.hero h1 {
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.9;
  font-weight: 600;
  letter-spacing: -5px;

  text-shadow:
    0 0 30px rgba(0, 255, 84, 0.08);
}

.hero h1 span {
  display: block;

  background:
    linear-gradient(
      90deg,
      #ffffff,
      #00ff54,
      #18c583,
      #929A34,
      #ffffff
    );

  background-size: 300% 100%;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  animation:
    textFlow 8s linear infinite;
}

.hero-description {
  max-width: 520px;
  margin-top: 30px;

  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero-button {
  width: fit-content;
  margin-top: 30px;
  padding: 13px 22px;

  color: #ffffff;
  text-decoration: none;

  background:
    linear-gradient(
      135deg,
      rgba(0, 255, 84, 0.12),
      rgba(24, 197, 131, 0.05)
    );

  border:
    1px solid rgba(0, 255, 84, 0.28);

  border-radius: 100px;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 0 30px rgba(0, 255, 84, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-button:hover {
  transform:
    translateY(-4px)
    scale(1.03);

  background:
    rgba(0, 255, 84, 0.18);

  box-shadow:
    0 0 45px rgba(0, 255, 84, 0.3);
}


/* ================================
   WORK SECTION
================================ */

.work-section {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 90px 0;

  position: relative;
  z-index: 3;
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading p {
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.5);
}

.section-heading h2 {
  margin-top: 8px;

  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
}


/* ================================
   CARD GRID
================================ */

.card-grid {
  display: grid;
  grid-template-columns:
    repeat(3, 1fr);

  gap: 26px;
  perspective: 1200px;
}


/* ================================
   3D GLASS CARDS
================================ */

.glass-card {
  position: relative;

  min-height: 340px;
  padding: 26px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  color: #ffffff;
  text-decoration: none;

  border-radius: 28px;

  background:
    linear-gradient(
      135deg,
      rgba(0, 255, 84, 0.12),
      rgba(24, 197, 131, 0.04)
    );

  border:
    1px solid rgba(0, 255, 84, 0.22);

  backdrop-filter:
    blur(28px)
    saturate(150%);

  -webkit-backdrop-filter:
    blur(28px)
    saturate(150%);

  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(0, 255, 84, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);

  overflow: hidden;

  transform-style: preserve-3d;

  transition:
    transform 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}


/* ================================
   GLASS SHINE
================================ */

.glass-card::before {
  content: "";

  position: absolute;

  top: -40%;
  left: -80%;

  width: 70%;
  height: 180%;

  background:
    linear-gradient(
      120deg,
      transparent,
      rgba(255, 255, 255, 0.28),
      transparent
    );

  transform:
    rotate(20deg);

  opacity: 0;

  pointer-events: none;

  transition:
    left 0.8s ease,
    opacity 0.3s ease;
}

.glass-card:hover::before {
  left: 130%;
  opacity: 1;
}


/* ================================
   CARD GLOW
================================ */

.glass-card::after {
  content: "";

  position: absolute;

  right: -70px;
  bottom: -70px;

  width: 180px;
  height: 180px;

  border-radius: 50%;

  background:
    rgba(0, 255, 84, 0.32);

  filter: blur(55px);

  transition:
    width 0.4s ease,
    height 0.4s ease,
    opacity 0.4s ease;
}


/* ================================
   CARD HOVER
================================ */

.glass-card:hover {
  transform:
    translateY(-12px)
    rotateX(5deg)
    rotateY(-5deg);

  border-color:
    rgba(0, 255, 84, 0.5);

  box-shadow:
    0 45px 90px rgba(0, 0, 0, 0.5),
    0 0 45px rgba(0, 255, 84, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.glass-card:hover::after {
  width: 260px;
  height: 260px;
}


/* ================================
   CARD NUMBER
================================ */

.card-number {
  position: relative;
  z-index: 2;

  font-size: 0.7rem;
  letter-spacing: 2px;

  color:
    rgba(255, 255, 255, 0.5);

  transform:
    translateZ(25px);
}


/* ================================
   CARD ICON
================================ */

.card-icon {
  position: relative;
  z-index: 2;

  margin: auto 0;

  font-size: 3.7rem;
  font-weight: 500;

  transform:
    translateZ(40px);

  text-shadow:
    0 0 30px rgba(0, 255, 84, 0.25);

  transition:
    transform 0.4s ease,
    text-shadow 0.4s ease;
}

.glass-card:hover .card-icon {
  transform:
    translateZ(65px)
    scale(1.1);

  text-shadow:
    0 0 40px rgba(0, 255, 84, 0.5);
}


/* ================================
   CARD CONTENT
================================ */

.card-content {
  position: relative;
  z-index: 2;

  transform:
    translateZ(30px);
}

.card-content small {
  font-size: 0.65rem;
  letter-spacing: 3px;

  color:
    rgba(255, 255, 255, 0.48);
}

.card-content h3 {
  margin: 7px 0 12px;

  font-size: 1.6rem;
  font-weight: 600;
}

.card-content span {
  font-size: 0.85rem;

  color:
    rgba(255, 255, 255, 0.65);

  transition:
    color 0.3s ease,
    letter-spacing 0.3s ease;
}

.glass-card:hover .card-content span {
  color: #00ff54;
  letter-spacing: 0.5px;
}


/* ================================
   DIFFERENT CARD GLOWS
================================ */

.glass-card:nth-child(2)::after {
  background:
    rgba(24, 197, 131, 0.35);
}

.glass-card:nth-child(3)::after {
  background:
    rgba(146, 154, 52, 0.3);
}

.glass-card:nth-child(4)::after {
  background:
    rgba(0, 255, 84, 0.32);
}

.glass-card:nth-child(5)::after {
  background:
    rgba(24, 197, 131, 0.34);
}

.glass-card:nth-child(6)::after {
  background:
    rgba(146, 154, 52, 0.3);
}


/* ================================
   ABOUT
================================ */

.about-section {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 130px 0;

  position: relative;
  z-index: 3;
}

.about-section small {
  font-size: 0.7rem;
  letter-spacing: 4px;

  color:
    rgba(255, 255, 255, 0.5);
}

.about-section h2 {
  max-width: 850px;

  margin: 20px 0;

  font-size:
    clamp(2.5rem, 6vw, 5rem);

  line-height: 1;
  font-weight: 600;
}

.about-section p {
  max-width: 550px;

  font-size: 1rem;

  color:
    rgba(255, 255, 255, 0.6);
}


/* ================================
   FOOTER
================================ */

.site-footer {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 30px 0;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border-top:
    1px solid rgba(0, 255, 84, 0.14);

  font-size: 0.8rem;

  color:
    rgba(255, 255, 255, 0.45);

  position: relative;
  z-index: 3;
}

.site-footer a {
  color:
    rgba(255, 255, 255, 0.65);

  text-decoration: none;

  transition:
    color 0.3s ease;
}

.site-footer a:hover {
  color: #00ff54;
}


/* ================================
   BACKGROUND ANIMATIONS
================================ */

@keyframes liquidOne {

  0% {
    transform:
      translate(0, 0)
      scale(1);

    border-radius:
      50%;
  }

  25% {
    transform:
      translate(120px, 60px)
      scale(1.22);

    border-radius:
      70% 30% 55% 45%;
  }

  50% {
    transform:
      translate(60px, 150px)
      scale(0.9);

    border-radius:
      35% 65% 45% 55%;
  }

  75% {
    transform:
      translate(-40px, 80px)
      scale(1.18);

    border-radius:
      60% 40% 70% 30%;
  }

  100% {
    transform:
      translate(0, 0)
      scale(1);

    border-radius:
      50%;
  }

}


@keyframes liquidTwo {

  0% {
    transform:
      translate(0, 0)
      scale(1);
  }

  25% {
    transform:
      translate(-120px, -50px)
      scale(1.12)
      rotate(10deg);
  }

  50% {
    transform:
      translate(-170px, 70px)
      scale(0.9)
      rotate(-10deg);
  }

  75% {
    transform:
      translate(-60px, 120px)
      scale(1.2)
      rotate(6deg);
  }

  100% {
    transform:
      translate(0, 0)
      scale(1);
  }

}


@keyframes liquidThree {

  0% {
    transform:
      translate(0, 0)
      scale(1);
  }

  25% {
    transform:
      translate(80px, -90px)
      scale(1.18);
  }

  50% {
    transform:
      translate(-40px, -170px)
      scale(0.88);
  }

  75% {
    transform:
      translate(-100px, -70px)
      scale(1.14);
  }

  100% {
    transform:
      translate(0, 0)
      scale(1);
  }

}


@keyframes backgroundPulse {

  0% {
    filter:
      brightness(0.95)
      saturate(1);
  }

  100% {
    filter:
      brightness(1.15)
      saturate(1.25);
  }

}


@keyframes gridMove {

  from {
    background-position:
      0 0,
      0 0;
  }

  to {
    background-position:
      70px 70px,
      70px 70px;
  }

}


@keyframes ringSpinOne {

  from {
    transform:
      translateX(-50%)
      rotate(0deg)
      scale(1);
  }

  50% {
    transform:
      translateX(-50%)
      rotate(180deg)
      scale(1.08);
  }

  to {
    transform:
      translateX(-50%)
      rotate(360deg)
      scale(1);
  }

}


@keyframes ringSpinTwo {

  from {
    transform:
      rotate(0deg)
      scale(1);
  }

  50% {
    transform:
      rotate(180deg)
      scale(1.1);
  }

  to {
    transform:
      rotate(360deg)
      scale(1);
  }

}


@keyframes textFlow {

  from {
    background-position:
      0% 50%;
  }

  to {
    background-position:
      300% 50%;
  }

}


/* ================================
   TABLET
================================ */

@media (max-width: 900px) {

  .card-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .hero h1 {
    letter-spacing: -3px;
  }

}


/* ================================
   MOBILE
================================ */

@media (max-width: 600px) {

  .site-header {
    padding: 20px 0;
  }

  .top-nav {
    gap: 16px;
  }

  .top-nav a {
    font-size: 0.8rem;
  }

  .hero {
    min-height: 80vh;
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 4rem;
    letter-spacing: -2px;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .work-section {
    padding: 70px 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .glass-card {
    min-height: 280px;
  }

  .card-icon {
    font-size: 3rem;
  }

  .about-section {
    padding: 90px 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

}


/* ================================
   REDUCED MOTION
================================ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

}