@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

:root {
  --master-grad: linear-gradient(
    270deg,
    #ffffff,
    #00c6ff,
    #0072ff,
    #00e5ff,
    #ffffff,
    white,
    rgb(245, 245, 110),
    orange,
    rgb(245, 245, 110),
    white
  );
  --neon-blue: #00e5ff;
  --orange-grad: linear-gradient(
    90deg,
    white,
    rgb(245, 245, 110),
    orange,
    rgb(245, 245, 110),
    white
  );

  --master-pulse-nav: linear-gradient(
    90deg,
    white,
    #00c6ff,
    #0072ff,
    #00e5ff,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0),
    white,
    rgb(245, 245, 110),
    orange,
    rgb(245, 245, 110),
    white,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0),
    white,
    #00c6ff,
    #0072ff,
    #00e5ff
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  width: 100%;
  overflow-x: hidden;
  background-color: black;
  min-height: 100vh;
  color: white;
  user-select: none;
}
body {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}

::-webkit-scrollbar {
  width: 1px;
}
::-webkit-scrollbar:horizontal {
  height: 1px;
  width: 1px;
}
::-webkit-scrollbar-track {
  background: #0f0f0f;
}
::-webkit-scrollbar-thumb {
  background: gray;
  border-radius: 1px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

a {
  text-decoration: none;
}

@keyframes flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes nav-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.tech-card,
.collage-card,
.dev-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.tech-card::before,
.collage-card::before,
.dev-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0s;
  pointer-events: none;
  z-index: 2;
}

.tech-card:hover::before,
.collage-card:hover::before,
.dev-card:hover::before {
  animation: shine-slide 0.75s;
}

@keyframes shine-slide {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

nav {
  margin-top: 10px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  position: fixed;
  width: 95%;
  height: 64px;
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  transition: box-shadow 0.3s ease-in-out;
  z-index: 9999;
  background: transparent;
  border: none;
}

nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--master-pulse-nav);
  background-size: 600% 600%;
  animation: nav-flow 15s linear infinite;
  border-radius: inherit;
  z-index: 10;
}

nav::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: black;
  border-radius: calc(50px - 3px);
  z-index: 11;
}

.logo {
  margin-top: 5px;
  height: 40px;
  z-index: 12;
  position: relative;
}

.nav-left a,
.nav-right a {
  position: relative;
  z-index: 12;
}

.nav-right a {
  color: white;
  font-size: 18px;
  font-weight: bold;
  margin: 0 25px 0 20px;
}

.nav-right a:hover {
  background: var(--master-grad);
  background-size: 600% 600%;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flow 8s linear infinite;
}

.about-header {
  height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  padding-top: 80px;
}
.about-header h1 {
  font-size: 4.5rem;
  background: var(--master-grad);
  background-size: 600% 600%;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flow 8s linear infinite;
  margin-bottom: 10px;
  letter-spacing: -2px;
}
.about-header p {
  font-size: 1.1rem;
  color: #888;
  max-width: 600px;
  margin: 0 auto;
}

.master-wrapper {
  border-top: solid 1px rgba(255, 255, 255, 0.126);
  background-color: rgba(0, 0, 0, 0.4);
}
.tech-marquee-section {
  padding: 40px 0 10px 0;
  position: relative;
  z-index: 2;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}
.marquee-container {
  width: 100%;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 25px;
  width: max-content;
  animation: scroll-left 35s linear infinite;
  padding: 10px 0;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.tech-card {
  width: 250px;
  height: 250px;
  border-radius: 20px;
  background: rgba(10, 10, 10, 0.3);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.tech-card:hover {
  background: black;
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(1, 211, 253, 0.35);
  border-color: var(--neon-blue);
}
.tech-card i {
  font-size: 50px;
  margin-bottom: 15px;
  color: var(--neon-blue);
}
.tech-info h4 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}
.tech-info p {
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.9;
}

.stats-bridge {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 40px 0;
  margin: 20px auto 40px auto;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 4;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.05);
}
.stat-item {
  text-align: center;
  position: relative;
}
.stat-item h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--neon-blue);
  margin-bottom: 5px;
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}
.stat-item p {
  font-size: 0.9rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.stat-separator {
  width: 1px;
  height: 50px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

.features-container {
  position: relative;
  padding-bottom: 5vh;
  z-index: 5;
}
.feature-section {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 110px;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.collage-wrapper {
  width: 90%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 15px;
  aspect-ratio: 16 / 9;
}
.collage-card {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}
.collage-card:hover {
  background: black;
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-8px);
  box-shadow: 0px 0px 15px rgba(0, 229, 255, 0.2);
}
.collage-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: #fff;
  z-index: 2;
}
.collage-card p {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.4;
  z-index: 2;
}
.collage-card .number {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 3rem;
  font-weight: 700;
  opacity: 0.1;
  color: white;
  z-index: 1;
}
.collage-card .icon-top {
  font-size: 1.5rem;
  color: var(--neon-blue);
  margin-bottom: 15px;
  z-index: 2;
}

.span-2-col {
  grid-column: span 2;
}
.span-1 {
  grid-column: span 1;
}
.code-snippet {
  font-size: 0.75rem;
  color: #0f0;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-radius: 6px;
  margin-top: auto;
  border-left: 2px solid #0f0;
  z-index: 2;
}

.developer-contact {
  position: relative;
  padding: 100px 20px;
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
  z-index: 50;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.developer-contact h2 {
  font-size: 3rem;
  margin-bottom: 60px;
  background: var(--orange-grad);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.dev-card {
  background: linear-gradient(145deg, #111, #0a0a0a);
  padding: 30px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}
.dev-card:hover {
  transform: translateY(-10px);
  border-color: #00c6ff;
  box-shadow: 0 10px 30px rgba(0, 198, 255, 0.15);
}
.dev-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.dev-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dev-socials a {
  color: #888;
  margin: 0 8px;
  font-size: 1.1rem;
  transition: 0.2s;
  position: relative;
  z-index: 5;
}
.dev-socials a:hover {
  color: white;
}
.dev-card h3,
.dev-card .role {
  position: relative;
  z-index: 3;
}

.footer {
  width: 100%;
  padding: 10px 0;
  font-size: 10px;
  font-weight: 600;
  color: rgba(128, 128, 128, 0.7);
  background: rgba(0, 0, 0, 0.7);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 50;
}

.footer-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin-bottom: 5px;
}

.footer img {
  width: 15px;
  height: 15px;
}

#vanta-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 900px) {
  nav {
    width: 90%;
    padding: 0 15px;
  }
  .stats-bridge {
    flex-direction: column;
    gap: 30px;
  }
  .stat-separator {
    width: 50%;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent
    );
  }
  .collage-wrapper {
    display: flex;
    flex-direction: column;
    height: auto;
    aspect-ratio: auto;
  }
  .feature-section {
    position: relative;
    height: auto;
    padding: 40px 0;
  }
  .span-2-col,
  .span-1 {
    grid-column: auto;
  }
}

@media (max-width: 1024px) {
  .about-header h1 {
    font-size: 3.5rem;
  }

  .collage-wrapper {
    width: 95%;
    max-height: none;
    gap: 10px;
  }

  .dev-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .feature-section {
    position: relative;
    height: auto;
    min-height: auto;
    top: 0;
    padding: 60px 0;
    opacity: 1 !important;
    transform: scale(1) !important;
    display: block;
  }

  .features-container {
    padding-bottom: 0;
  }

  .collage-wrapper {
    display: flex;
    flex-direction: column;
    height: auto;
    aspect-ratio: auto;
  }

  .span-2-col,
  .span-2-row,
  .span-1 {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }

  .stats-bridge {
    flex-direction: column;
    gap: 25px;
    padding: 30px 20px;
  }

  .stat-separator {
    width: 60%;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent
    );
  }
}

@media (max-width: 768px) {
  nav {
    width: 95%;
    padding: 0 15px;
  }

  .nav-right a {
    font-size: 14px;
    margin: 0 10px;
  }

  .logo {
    height: 30px;
  }

  .about-header {
    height: auto;
    padding: 120px 20px 60px 20px;
  }

  .about-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .about-header p {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  .tech-card {
    width: 220px;
    height: 220px;
    padding: 20px;
  }

  .tech-card i {
    font-size: 40px;
  }

  .dev-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .developer-contact h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  nav {
    height: 55px;
  }

  .about-header h1 {
    font-size: 2rem;
  }

  .marquee-track {
    gap: 15px;
  }

  .tech-card {
    width: 200px;
    height: 220px;
  }

  .collage-card .number {
    font-size: 2rem;
  }

  .collage-card h3 {
    font-size: 1.2rem;
  }

  .stat-item h2 {
    font-size: 2.2rem;
  }
}
