/* Reset and Base Styles */

/* Premium Magnetic Cursor Effect */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: all 0.15s ease;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.cursor-follower {
  position: fixed;
  width: 30px;
  height: 30px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.cursor-follower.expand {
  width: 80px;
  height: 80px;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
  border-width: 3px;
}

.cursor.active {
  transform: scale(1.5);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.cursor.hidden {
  opacity: 0;
  transform: scale(0);
}

.cursor-follower.hidden {
  opacity: 0;
  transform: scale(0);
}

/* Enhanced Magnetic elements */
.magnetic {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: visible;
}

.magnetic::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: inherit;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.magnetic:hover::before {
  opacity: 1;
}

.magnetic:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Special magnetic effect for logo */
.logo.magnetic:hover {
  transform: scale(1.08) rotate(3deg);
}

/* Hide cursor on mobile devices */
@media (max-width: 768px) {
  body {
    cursor: auto;
  }
  .cursor,
  .cursor-follower {
    display: none !important;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #111111, #0d0d0d, #1a1a1a);
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.03),
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

/* Navigation */
nav {
  height: 90px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo-cube {
  width: 50px;
  height: 50px;
  transform-style: preserve-3d;
  transform: rotateX(20deg) rotateY(20deg);
  animation: spin 12s infinite linear;
  position: relative;
  margin: 5px 0;
}

.face {
  position: absolute;
  width: 50px;
  height: 50px;
  background: linear-gradient(145deg, #111, #222);
  color: #fff;
  font-size: 20px;
  font-family: "Courier New", monospace;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #444;
  opacity: 0.95;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15),
    0 0 30px rgba(255, 255, 255, 0.1) inset;
  backdrop-filter: blur(1px);
}

.front {
  transform: translateZ(25px);
}
.back {
  transform: rotateY(180deg) translateZ(25px);
}
.right {
  transform: rotateY(90deg) translateZ(25px);
}
.left {
  transform: rotateY(-90deg) translateZ(25px);
}
.top {
  transform: rotateX(90deg) translateZ(25px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(25px);
}

@keyframes spin {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: rotateX(180deg) rotateY(90deg);
  }
  50% {
    transform: rotateX(360deg) rotateY(180deg);
  }
  75% {
    transform: rotateX(540deg) rotateY(270deg);
  }
  100% {
    transform: rotateX(720deg) rotateY(360deg);
  }
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 1.1rem;
  position: relative;
}

.nav-link:hover {
  transform: scale(1.1);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 50%;
  bottom: 2px;
  background-color: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Main Content */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.intro {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 150px 0 50px;
}

.homeheader {
  margin-bottom: 3rem;
}

.homeheader h1 {
  font-size: clamp(4rem, 12vw, 12rem);
  color: rgb(243, 243, 243);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.rahul {
  background: linear-gradient(135deg, #f5f5f5, #c0c0c0, #eeeeee, #888888);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4),
    0 2px 8px rgba(255, 255, 255, 0.1), 0 0 20px rgba(200, 200, 255, 0.05);
  animation: shine 6s ease-in-out infinite;
  display: block;
}

.pandey {
  background: linear-gradient(120deg, #e6e6e6, #aaaaaa, #f0f0f0);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  display: block;
}

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

.subtitle {
  letter-spacing: 0.1px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  font-size: clamp(1rem, 3vw, 1.4rem);
  margin: 1rem 0 2rem;
}

.intro .link {
  background-color: transparent;
  border: 1.5px solid #fff;
  color: #fff;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
  margin-bottom: 4rem;
}

.intro .link:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: #eee;
}

.know {
  max-width: 800px;
  margin: 0 auto;
}

.hey {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: bold;
  color: rgb(243, 243, 243);
  margin-bottom: 2rem;
  background: linear-gradient(120deg, #e6e6e6, #aaaaaa, #f0f0f0);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(255, 255, 255, 0.05);
}

.about-me {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Work Section */
.work {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin: 5rem 0;
  padding: 2rem 0;
  justify-items: center;
}

.home-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 450px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.home-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

.home-item a {
  text-decoration: none;
  display: block;
  padding: 0;
}

.home-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  transition: transform 0.5s ease;
}

.home-item:hover img {
  transform: scale(1.05);
}

.home-item .content {
  padding: 1.5rem;
}

.title {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  margin: 0 0 0.8rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.home-item:hover .title {
  color: rgba(255, 255, 255, 1);
}

.des {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.home-item:hover .des {
  color: rgba(255, 255, 255, 0.8);
}

/* Footer */
footer {
  margin: 3rem 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer p {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0;
}

.inspire {
  color: #ccc;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.inspire::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #888, #fff, #888);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.inspire:hover {
  color: #fff;
}

.inspire:hover::after {
  opacity: 1;
}

.list {
  display: flex;
  gap: 1rem;
}

.list .link {
  background-color: transparent;
  border: 1.5px solid #fff;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.list .link:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: #eee;
}

/* Scroll to Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 1rem;
  right: 2rem;
  z-index: 100;
  background-color: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: none;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#scrollTopBtn.show {
  display: flex;
}

#scrollTopBtn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
  nav {
    padding: 0 1rem;
  }

  nav ul {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100vh - 90px);
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(-100%);
   transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
  }

  nav ul.show {
    
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle {
    display: flex;
    z-index: 1002;
    position: relative;
  }

  .menu-toggle span {
    display: block;
    position: relative;
    background: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: white;
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: white;
  }

  .nav-link {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    color: white !important;
  }

  main {
    padding: 0 1rem;
  }

  .intro {
    padding: 130px 0 50px;
  }

  .work {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
  }

  .home-item {
    max-width: 100%;
  }

  .home-item img {
    height: 220px;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

  .list {
    flex-wrap: wrap;
    justify-content: center;
  }

  #scrollTopBtn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .work {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-item img {
    height: 180px;
  }

  .intro .link {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .list .link {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Hide AOS on mobile for better performance */
@media (max-width: 768px) {
  [data-aos] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

