:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a0a2e;
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --accent-purple: #8a2be2;
  --accent-glow: rgba(138, 43, 226, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(180, 107, 249, 0.2);
  --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  letter-spacing: 0.3px;
  font-smoothing: antialiased;
  font-family: "Inter", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  padding: 0.4rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-purple);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  font-size: 18px;
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--accent-purple);
  text-decoration: underline;

  /* text-shadow: 0 0 5px violet; */
}

.nav-menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.9);
  padding: 1rem;
  text-align: center;
}

.nav-menu.active li {
  margin: 1rem 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }
}

/* Hero with Spline */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6rem 8%;
  min-height: 100vh;
  gap: 40px;
}

.hero-left img {
  height: 31vh;
  width: 15vw;
  border-radius: 50%;
  margin-left: 50px;
  border: 2px solid rgb(218, 144, 249);
}
/* Left text section */
.hero-left {
  flex: 1;
}

/* 3D Model Section */
.hero-right {
  flex: 1;
  height: 500px;
}

.hero-right spline-viewer {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 4rem 5%;
  }

  .hero-right {
    width: 100%;
    height: 350px;
  }
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--accent-purple);
  margin-bottom: 1rem;
  box-shadow: 0 0 20px var(--accent-glow);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent-purple), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* ---------------------
   Typing / Typewriter
   --------------------- */
.tagline {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

#typed-text {
  color: var(--accent-purple);
  font-weight: 600;
  white-space: nowrap;
}

/* cursor styling */
.typed-cursor {
  display: inline-block;
  margin-left: 2px;
  width: 3px;
  background: #fff;
  animation: blink 0.7s infinite;
}

/* subtle pulse for cursor */
@keyframes blinkCursor {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0;
    transform: translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional: pause typing cursor on hover for readability */
.hero .tagline:hover .typed-cursor {
  animation-play-state: paused;
}

/* If you want text width not to jump, limit max-width on small screens */
@media (max-width: 480px) {
  #typed-text {
    font-size: 1.15rem;
  }
}

.bio {
  max-width: 600px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--accent-purple), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
}

.github-stats img {
  width: 100%;
  max-width: 500px;
  margin: 2rem auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Experience Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.glow-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(15px) saturate(140%);
  -webkit-backdrop-filter: blur(15px) saturate(140%);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glow-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px var(--accent-glow);
  border-color: var(--accent-purple);
  /* transition: cubic-bezier(0.075, 0.82, 0.165, 1); */
}

.glow-card i {
  font-size: 3rem;
  color: var(--accent-purple);
  margin-bottom: 1rem;
}

.glow-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.glow-card p {
  color: var(--text-secondary);
}

.glow-card ul {
  list-style: none;
  text-align: left;
  margin-top: 1rem;
}

.glow-card ul li {
  margin-bottom: 0.5rem;
}

/* Skills Progress Bars */
.progress-bar {
  width: 100%;
  background: var(--glass-bg);
  border-radius: 5px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress {
  height: 20px;
  background: var(--accent-purple);
  border-radius: 5px;
  width: 0;
  transition: width 1.5s ease-out;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1.5rem;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--accent-glow);
}

.project-mockup {
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.project-mockup img {
  width: 100%;
  height: auto;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.project-links a {
  color: var(--accent-purple);
  font-size: 1.2rem;
  transition: var(--transition);
}

.project-links a:hover {
  transform: scale(1.1);
}

/* Connect With Me */
.connect .social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.connect .glow-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  text-decoration: none;
}

.connect .glow-card i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.connect .glow-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Call-to-Action */
.cta {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 20px;
  border: 2px solid var(--glass-border);
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
}

.cta-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background: var(--accent-purple);
  padding: 1rem 2rem;
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn:hover {
  box-shadow: 0 5px 15px var(--accent-glow);
  transform: translateY(-2px);
}

/* Contact */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1rem;
  color: var(--text-primary);
  font-family: inherit;
}

.contact-form button {
  background: var(--accent-purple);
  border: none;
  padding: 1rem;
  border-radius: 10px;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.contact-form button:hover {
  box-shadow: 0 5px 15px var(--accent-glow);
}

.contact-info {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-secondary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .connect .social-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeInUp 1s ease-out;
}
.text-center {
  align-items: center;
  text-align: center;
  margin-bottom: 10px;
}
@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}
.heart {
  display: inline-block;
  color: #ff4d6d;
  animation: heartbeat 1.5s infinite;
}

.section {
  animation: fadeInUp 1s ease-out;
}

.text-center {
  align-items: center;
  text-align: center;
  margin-bottom: 10px;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

.heart {
  display: inline-block;
  color: #ff4d6d;
  animation: heartbeat 1.5s infinite;
}

/* ---------------------------------------------------
   ⚡ NEW ADVANCED HOVER EFFECTS
--------------------------------------------------- */

/* Smooth Scale */
.hover-scale {
  transition: var(--transition);
}
.hover-scale:hover {
  transform: scale(1.07);
}

/* Lift Up Effect */
.hover-lift {
  transition: var(--transition);
}
.hover-lift:hover {
  transform: translateY(-8px);
}

/* 3D Tilt Effect */
.hover-tilt {
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
}
.hover-tilt:hover {
  transform: perspective(600px) rotateX(8deg) rotateY(-8deg);
}

/* Glow Border + Shadow */
.hover-glow {
  transition: var(--transition);
}
.hover-glow:hover {
  box-shadow: 0 0 25px var(--accent-glow);
  border-color: var(--accent-purple) !important;
}

/* Zoom Image */
.hover-zoom img,
.hover-zoom {
  transition: transform 0.4s ease;
}
.hover-zoom:hover img,
.hover-zoom:hover {
  transform: scale(1.12);
}

/* Shine / Reflection */
.hover-shine {
  position: relative;
  overflow: hidden;
}
.hover-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transform: skewX(-20deg);
  transition: 0.7s;
}
.hover-shine:hover::after {
  left: 120%;
}

/* Ripple Button */
.ripple {
  position: relative;
  overflow: hidden;
}
.ripple:active::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: rippleEffect 0.6s linear;
  transform: translate(-50%, -50%);
}
@keyframes rippleEffect {
  from {
    opacity: 1;
    transform: scale(0);
  }
  to {
    opacity: 0;
    transform: scale(2);
  }
}

/* Magnetic Hover Effect */
.magnet {
  transition: transform 0.2s ease-out;
}
.magnet:hover {
  transform: translateY(-4px) scale(1.05);
}


