/* Base Styles */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #ff3366;
  --secondary-color: #00ccff;
  --accent-color: #7c4dff;
  --dark-color: #121212;
  --light-color: #f8f9fa;
  --text-color: #333;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --glitch-color-1: #ff00ea;
  --glitch-color-2: #00ffff;
}

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

html {
  /* scroll-behavior: smooth; */
  font-size: 62.5%;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
  font-size: 1.6rem;
  position: relative;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 10rem 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

section:not(.section-visible) {
  opacity: 0.8;
}

section.section-visible {
  opacity: 1;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Custom Cursor */
.cursor {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  backdrop-filter: invert(100%);
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s;
}

.cursor-active {
  width: 1.2rem;
  height: 1.2rem;
  background-color: var(--primary-color);
}

.cursor-hover {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 51, 102, 0.2);
  border: 1px solid var(--primary-color);
}

/* Tech Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 2rem 0;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.6rem;
  border-radius: 10rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 -2px 0 rgba(0, 0, 0, 0.1), inset 0
    1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--dark-color);
  font-weight: 500;
  font-size: 1.4rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  animation: badgeAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--badge-index) * 0.1s);
  opacity: 0;
  transform: translateY(20px);
}

@keyframes badgeAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tech-badge:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 2px 5px rgba(0, 0, 0, 0.1), inset 0 -2px 0 rgba(0, 0, 0, 0.1), inset 0
    1px 0 rgba(255, 255, 255, 0.8);
}

.tech-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.tech-badge::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--badge-color);
  border-radius: 0 0 10rem 10rem;
  opacity: 0.7;
}

.tech-badge i {
  margin-right: 0.8rem;
  font-size: 1.6rem;
  color: var(--badge-color);
}

.tech-badge span {
  position: relative;
  z-index: 1;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 2rem 0;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: 0 auto;
  max-width: 1200px;
}

.logo {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
  animation: logo-shine 3s infinite;
}

@keyframes logo-shine {
  0% {
    left: -100%;
  }
  20%,
  100% {
    left: 100%;
  }
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-link {
  font-size: 1.6rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 5px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.parallax-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.layer-1 {
  background: radial-gradient(circle at center, rgba(255, 51, 102, 0.8) 0%, transparent 70%);
  filter: blur(30px);
  opacity: 0.7;
}

.layer-2 {
  background: radial-gradient(circle at 30% 70%, rgba(0, 204, 255, 0.6) 0%, transparent 60%);
  filter: blur(40px);
  opacity: 0.5;
}

.layer-3 {
  background: radial-gradient(circle at 70% 30%, rgba(124, 77, 255, 0.5) 0%, transparent 60%);
  filter: blur(50px);
  opacity: 0.4;
}

.layer-4 {
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.layer-5 {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
  opacity: 0.5;
}

.hero .content {
  text-align: center;
  color: white;
  z-index: 1;
  max-width: 800px;
  padding: 0 2rem;
  position: relative;
}

.hero h1 {
  font-size: 7rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.glitch {
  position: relative;
  animation: glitch 1s linear infinite;
}

@keyframes glitch {
  2%,
  64% {
    transform: translate(2px, 0) skew(0deg);
  }
  4%,
  60% {
    transform: translate(-2px, 0) skew(0deg);
  }
  62% {
    transform: translate(0, 0) skew(5deg);
  }
}

.glitch:before,
.glitch:after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch:before {
  left: 2px;
  text-shadow: -2px 0 var(--glitch-color-1);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch:after {
  left: -2px;
  text-shadow: -2px 0 var(--glitch-color-2);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(31px, 9999px, 94px, 0);
  }
  5% {
    clip: rect(70px, 9999px, 71px, 0);
  }
  10% {
    clip: rect(29px, 9999px, 83px, 0);
  }
  15% {
    clip: rect(16px, 9999px, 91px, 0);
  }
  20% {
    clip: rect(2px, 9999px, 23px, 0);
  }
  25% {
    clip: rect(60px, 9999px, 73px, 0);
  }
  30% {
    clip: rect(14px, 9999px, 56px, 0);
  }
  35% {
    clip: rect(89px, 9999px, 25px, 0);
  }
  40% {
    clip: rect(32px, 9999px, 26px, 0);
  }
  45% {
    clip: rect(67px, 9999px, 96px, 0);
  }
  50% {
    clip: rect(40px, 9999px, 53px, 0);
  }
  55% {
    clip: rect(90px, 9999px, 11px, 0);
  }
  60% {
    clip: rect(83px, 9999px, 4px, 0);
  }
  65% {
    clip: rect(23px, 9999px, 94px, 0);
  }
  70% {
    clip: rect(80px, 9999px, 98px, 0);
  }
  75% {
    clip: rect(61px, 9999px, 53px, 0);
  }
  80% {
    clip: rect(75px, 9999px, 57px, 0);
  }
  85% {
    clip: rect(89px, 9999px, 14px, 0);
  }
  90% {
    clip: rect(12px, 9999px, 86px, 0);
  }
  95% {
    clip: rect(55px, 9999px, 56px, 0);
  }
  100% {
    clip: rect(67px, 9999px, 93px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(65px, 9999px, 99px, 0);
  }
  5% {
    clip: rect(79px, 9999px, 43px, 0);
  }
  10% {
    clip: rect(34px, 9999px, 70px, 0);
  }
  15% {
    clip: rect(70px, 9999px, 61px, 0);
  }
  20% {
    clip: rect(96px, 9999px, 78px, 0);
  }
  25% {
    clip: rect(3px, 9999px, 23px, 0);
  }
  30% {
    clip: rect(82px, 9999px, 99px, 0);
  }
  35% {
    clip: rect(72px, 9999px, 81px, 0);
  }
  40% {
    clip: rect(70px, 9999px, 17px, 0);
  }
  45% {
    clip: rect(75px, 9999px, 46px, 0);
  }
  50% {
    clip: rect(65px, 9999px, 64px, 0);
  }
  55% {
    clip: rect(5px, 9999px, 80px, 0);
  }
  60% {
    clip: rect(82px, 9999px, 31px, 0);
  }
  65% {
    clip: rect(54px, 9999px, 27px, 0);
  }
  70% {
    clip: rect(28px, 9999px, 99px, 0);
  }
  75% {
    clip: rect(45px, 9999px, 28px, 0);
  }
  80% {
    clip: rect(57px, 9999px, 37px, 0);
  }
  85% {
    clip: rect(57px, 9999px, 37px, 0);
  }
  90% {
    clip: rect(9px, 9999px, 2px, 0);
  }
  95% {
    clip: rect(39px, 9999px, 49px, 0);
  }
  100% {
    clip: rect(70px, 9999px, 48px, 0);
  }
}

.subtitle {
  font-size: 2.4rem;
  font-weight: 300;
  margin-bottom: 4rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.5s;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-size: 1.4rem;
  z-index: 2;
}

.mouse-advanced {
  position: relative;
  width: 3rem;
  height: 5rem;
  margin-top: 1rem;
}

.mouse-body {
  width: 100%;
  height: 100%;
  border: 2px solid white;
  border-radius: 2rem;
  position: relative;
  animation: mouseFloat 2s ease-in-out infinite;
}

@keyframes mouseFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.mouse-wheel {
  width: 0.6rem;
  height: 0.6rem;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  top: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  animation: wheel 1.5s infinite;
}

.mouse-line {
  width: 1px;
  height: 10px;
  background-color: white;
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouseLine 1.5s ease-in-out infinite;
}

@keyframes mouseLine {
  0% {
    height: 0;
    bottom: -5px;
    opacity: 0;
  }
  30% {
    height: 10px;
    opacity: 1;
  }
  100% {
    height: 0;
    bottom: -25px;
    opacity: 0;
  }
}

@keyframes wheel {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 2rem);
    opacity: 0;
  }
}

/* About Section */
.about {
  background-color: white;
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
  z-index: 0;
}

.section-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 6rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 0.4rem;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border-radius: 0.2rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-text p {
  margin-bottom: 2rem;
  font-size: 1.8rem;
  position: relative;
  z-index: 1;
}

.skills {
  margin-top: 4rem;
}

.skill {
  margin-bottom: 2rem;
  position: relative;
}

.skill-name {
  font-weight: 500;
  margin-bottom: 0.8rem;
  display: block;
}

.skill-bar {
  height: 1rem;
  background-color: #e9ecef;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
}

.skill-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: skillShine 2s infinite linear;
  transform: translateX(-100%);
}

@keyframes skillShine {
  100% {
    transform: translateX(100%);
  }
}

.skill-level {
  height: 100%;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border-radius: 0.5rem;
  transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
}

.about-image {
  position: relative;
}

.image-container {
  position: relative;
  width: 100%;
  padding-bottom: 125%; /* 4:5 aspect ratio */
  overflow: hidden;
}

.image-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://placehold.co/600x480") center / cover no-repeat;
  border-radius: 1rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.1);
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.image-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.3), rgba(0, 204, 255, 0.3));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.image-frame:hover {
  transform: scale(1.05) rotate(2deg);
}

.image-frame:hover::before {
  opacity: 1;
}

/* Projects Section */
.projects {
  background-color: #f8f9fa;
  position: relative;
}

.projects::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 1;
}

/* Remove or comment out the glitch hover styles */
/*.project-card.glitch-hover {
  position: relative;
  overflow: visible;
}

.glitch-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  border-radius: 1rem;
  overflow: hidden;
  opacity: 0;
  z-index: -1;
}

.project-card.glitching .glitch-1 {
  animation: glitch-1 0.2s infinite;
  z-index: 1;
}

.project-card.glitching .glitch-2 {
  animation: glitch-2 0.3s infinite;
  z-index: 1;
}

.project-card.glitching .glitch-3 {
  animation: glitch-3 0.25s infinite;
  z-index: 1;
}

.project-card.glitching .glitch-4 {
  animation: glitch-4 0.35s infinite;
  z-index: 1;
}

.project-card.glitching .glitch-5 {
  animation: glitch-5 0.4s infinite;
  z-index: 1;
}

@keyframes glitch-1 {
  0%,
  100% {
    opacity: 0;
    transform: translate(0);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  5%,
  15% {
    opacity: 0.2;
    transform: translate(-5px, 2px);
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 85%);
  }
}

@keyframes glitch-2 {
  0%,
  100% {
    opacity: 0;
    transform: translate(0);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  5%,
  15% {
    opacity: 0.2;
    transform: translate(5px, -2px);
    clip-path: polygon(0 0, 100% 15%, 100% 85%, 0 100%);
  }
}

@keyframes glitch-3 {
  0%,
  100% {
    opacity: 0;
    transform: translate(0);
  }
  7%,
  13% {
    opacity: 0.3;
    transform: translate(2px, 3px);
  }
}

@keyframes glitch-4 {
  0%,
  100% {
    opacity: 0;
    transform: translate(0);
  }
  7%,
  13% {
    opacity: 0.3;
    transform: translate(-2px, -3px);
  }
}

@keyframes glitch-5 {
  0%,
  100% {
    opacity: 0;
    transform: translate(0);
  }
  10%,
  15% {
    opacity: 0.3;
    transform: translate(0, 5px);
  }
}
*/

/* Add new smooth hover styles */
.project-card {
  background-color: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
  position: relative;
}

.project-card:hover {
  transform: translateY(-1rem) scale(1.02);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.15);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-hover .card-glow {
  opacity: 1;
}

.project-card.card-hover {
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2), 0 0 20px rgba(124, 77, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card.card-hover .project-content h3::after {
  width: 100%;
  transition-delay: 0.1s;
}

.project-card.card-hover .project-tags span {
  transform: translateY(-2px);
  background-color: #e9ecef;
  transition-delay: calc(0.05s * var(--index, 0));
}

/* Add this to make the tags animate with delay */
.project-tags span {
  padding: 0.5rem 1.2rem;
  background-color: #f1f3f5;
  border-radius: 3rem;
  font-size: 1.2rem;
  font-weight: 500;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.project-image {
  height: 20rem;
  background: url("https://placehold.co/600x400") center / cover no-repeat;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
}

.project-card:hover .project-image::before {
  opacity: 1;
}

.project-content {
  padding: 2.5rem;
  position: relative;
  z-index: 2;
}

.project-content h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.project-content h3::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  transition: width 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-card:hover .project-content h3::after {
  width: 100%;
}

.project-content p {
  margin-bottom: 2rem;
  color: #6c757d;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.project-tags span {
  padding: 0.5rem 1.2rem;
  background-color: #f1f3f5;
  border-radius: 3rem;
  font-size: 1.2rem;
  font-weight: 500;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.project-card:hover .project-tags span {
  transform: translateY(-2px);
  background-color: #e9ecef;
}

.project-link {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  color: white;
  border-radius: 3rem;
  font-weight: 500;
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  overflow: hidden;
}

.project-link:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.liquid-canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Contact Section */
.contact {
  background-color: white;
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 90%, rgba(255, 51, 102, 0.1), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(0, 204, 255, 0.1), transparent 40%);
  z-index: 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  position: relative;
  z-index: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px);
}

.icon {
  font-size: 2.4rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.contact-item:hover .icon {
  transform: scale(1.2);
}

.text h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-link {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background-color: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.social-link:hover {
  transform: translateY(-5px);
}

.social-link:hover::before {
  opacity: 1;
}

.social-icon {
  position: relative;
  z-index: 1;
}

.social-link:hover .social-icon svg {
  fill: white;
}

.social-icon svg {
  fill: var(--primary-color);
  transition: var(--transition);
}

.contact-form {
  width: 100%;
  position: relative;
}

.form-group {
  position: relative;
  margin-bottom: 3rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 0;
  font-size: 1.6rem;
  border: none;
  border-bottom: 1px solid #ddd;
  outline: none;
  background-color: transparent;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 0;
  font-size: 1.6rem;
  color: #999;
  pointer-events: none;
  transition: var(--transition);
}

.form-group .line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  transition: var(--transition);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
  top: -2rem;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.form-group input:focus ~ .line,
.form-group textarea:focus ~ .line {
  width: 100%;
}

.form-group textarea {
  min-height: 10rem;
  resize: none;
}

.input-particles {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
  z-index: 0;
}

.input-particle {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.input-particle.active {
  animation: particleRise 1s ease-out forwards;
}

@keyframes particleRise {
  0% {
    opacity: 1;
    width: 2px;
    height: 2px;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    width: 10px;
    height: 10px;
    transform: translateY(-20px) scale(0);
  }
}

.form-group.shake {
  animation: formShake 0.5s ease-in-out;
}

@keyframes formShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-5px);
  }
  40%,
  80% {
    transform: translateX(5px);
  }
}

.submit-btn {
  padding: 1.2rem 3rem;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  border-radius: 3rem;
  font-size: 1.6rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 10;
}

.form-success-overlay.active {
  opacity: 1;
  visibility: visible;
}

.form-success-message {
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.form-success-overlay.active .form-success-message {
  transform: translateY(0);
  opacity: 1;
}

.success-icon {
  width: 6rem;
  height: 6rem;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  margin: 0 auto 2rem;
}

.success-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  animation: successParticle 1.5s ease-out forwards;
}

@keyframes successParticle {
  0% {
    opacity: 1;
    transform: scale(0) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: scale(1) translate(calc(cos(var(--angle, 0deg)) * 100px), calc(sin(var(--angle, 90deg)) * 100px));
  }
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-text {
  font-size: 1.4rem;
}

/* Particles.js */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Custom Scroll Path */
.scroll-path-container {
  position: fixed;
  top: 0;
  right: 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
}

.scroll-path {
  width: 2px;
  height: 80%;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  position: relative;
  pointer-events: all;
}

.scroll-bar {
  width: 6px;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 5px;
  transition: top 0.1s ease;
}

.scroll-marker {
  width: 12px;
  height: 12px;
  background-color: white;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.scroll-marker:hover,
.scroll-marker.active {
  background-color: var(--primary-color);
  transform: translateX(-50%) scale(1.2);
}

.marker-tooltip {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--dark-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  font-size: 1.2rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.marker-tooltip::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-left: 5px solid var(--dark-color);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.scroll-marker:hover .marker-tooltip {
  opacity: 1;
  visibility: visible;
  right: 25px;
}

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9990;
}

/* Animations for nav links */
@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Burger animation */
.burger.toggle div:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle div:nth-child(2) {
  opacity: 0;
}

.burger.toggle div:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
  html {
    font-size: 55%;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .about-image {
    order: -1;
  }

  .image-container {
    padding-bottom: 75%;
  }

  .scroll-path-container {
    right: 1rem;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 50%;
  }

  .nav-links {
    position: absolute;
    top: 8vh;
    right: 0;
    height: 92vh;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 50%;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
  }

  .nav-links li {
    opacity: 0;
  }

  .burger {
    display: block;
  }

  .nav-active {
    transform: translateX(0%);
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .subtitle {
    font-size: 2rem;
  }

  .scroll-path-container {
    display: none;
  }
}

@media screen and (max-width: 576px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }

  .section-title {
    font-size: 3.5rem;
  }
}
