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

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #020617;
  color: #fff;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

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

section {
  padding: 3rem 8%;
}

/* HERO */
.hero {
  position: relative;
  min-height: 85vh;
  padding-top: 6rem;
  padding-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 124, 255, 0.15),
      transparent 50%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(124, 124, 255, 0.08),
      transparent 50%
    ),
    linear-gradient(to bottom, #020617, #020617);
  z-index: -1;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  animation: fadeUp 0.8s ease-out;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-content span {
  color: #7c7cff;
}

.hero-content .subtitle {
  color: #9ca3af;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease-out 0.2s both;
  font-weight: 500;
}

.hero-intro {
  color: #d1d5db;
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease-out 0.4s both;
  max-width: 550px;
}

.hero-intro strong {
  color: #fff;
  font-weight: 600;
}

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

/* AVATAR SECTION */
.hero-avatar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.8s ease-out 0.3s both;
}

.avatar-container {
  position: relative;
  width: 350px;
  height: 350px;
}

.avatar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 3px solid #7c7cff;
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.avatar-image {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(124, 124, 255, 0.3);
  box-shadow: 0 20px 60px rgba(124, 124, 255, 0.4);
  z-index: 1;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* STATS BAR */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.8rem;
  background: rgba(124, 124, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(124, 124, 255, 0.2);
  animation: fadeUp 0.8s ease-out 0.6s both;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #7c7cff;
  display: block;
}

.stat-label {
  color: #9ca3af;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* SKILLS SCROLL */
.skills-scroll {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 2.5rem 0;
  border-top: 1px solid #1f2937;
  border-bottom: 1px solid #1f2937;
  background: linear-gradient(180deg, #05070d, #0b0f1a);
}

.skills-track {
  display: flex;
  width: max-content;
  animation: scrollIcons 28s linear infinite;
}

.skill-icon {
  width: 80px;
  height: 80px;
  margin: 0 50px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, #111, #1c1c26);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.skill-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: filter 0.35s ease;
}

.skill-icon:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 25px 50px rgba(124, 124, 255, 0.35);
}

.skill-icon:hover img {
  filter: grayscale(0) opacity(1);
}

@keyframes scrollIcons {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ABOUT SECTION */
.about {
  max-width: 900px;
  margin: 0 auto;
  animation: fadeUp 0.8s ease-out;
  padding: 4rem 8%;
}

.about h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff, #7c7cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about p {
  color: #9ca3af;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

/* 3D PLANET WITH ORBITING OBJECTS */
/* .planet-3d {
  margin: 5rem 0;
  display: flex;
  justify-content: center;
  min-height: 600px;
  position: relative;
}

#planetCanvas {
  width: 100%;
  max-width: 900px;
  height: 600px;
  cursor: grab;
}

#planetCanvas:active {
  cursor: grabbing;
}

.orbit-objects {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  pointer-events: none;
}

.orbit-path {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(124, 124, 255, 0.2);
  border-radius: 50%;
}

.orbit-path.path-1 {
  width: 500px;
  height: 200px;
  animation: rotateFlat 20s linear infinite;
}

.orbit-path.path-2 {
  width: 600px;
  height: 240px;
  animation: rotateFlat 25s linear infinite reverse;
}

@keyframes rotateFlat {
  from {
    transform: translate(-50%, -50%) rotateZ(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotateZ(360deg);
  }
}

.orbit-object {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(124, 124, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(124, 124, 255, 0.6);
  backdrop-filter: blur(10px);
}

.orbit-object:hover {
  transform: scale(1.3);
  box-shadow: 0 0 40px rgba(124, 124, 255, 0.9);
  background: rgba(124, 124, 255, 1);
}

.orbit-object svg,
.orbit-object img {
  width: 32px;
  height: 32px;
  fill: white;
} */

/* Position objects on orbit paths */
/* .orbit-path.path-1 .orbit-object:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-path.path-1 .orbit-object:nth-child(2) {
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
}

.orbit-path.path-2 .orbit-object:nth-child(1) {
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
}

.orbit-path.path-2 .orbit-object:nth-child(2) {
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotateZ(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotateZ(360deg);
  }
}

.object-tooltip {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 15, 20, 0.95);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  border: 1px solid rgba(124, 124, 255, 0.5);
  font-weight: 500;
}

.orbit-object:hover .object-tooltip {
  opacity: 1;
} */

/* To fix orbit objects */
/* ============================================
   3D PLANET ORBIT STYLES - REPLACE IN YOUR CSS
   ============================================ */

/* 3D PLANET WITH ORBITING OBJECTS */
.planet-3d {
  margin: 5rem 0;
  display: flex;
  justify-content: center;
  min-height: 600px;
  position: relative;
}

#planetCanvas {
  width: 100%;
  max-width: 900px;
  height: 600px;
  cursor: grab;
}

#planetCanvas:active {
  cursor: grabbing;
}

.orbit-objects {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  pointer-events: none;
  perspective: 1000px;
}

.orbit-path {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(124, 124, 255, 0.2);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.orbit-path.path-1 {
  width: 500px;
  height: 500px;
  animation: rotateOrbit1 20s linear infinite;
}

.orbit-path.path-2 {
  width: 600px;
  height: 600px;
  animation: rotateOrbit2 25s linear infinite reverse;
}

@keyframes rotateOrbit1 {
  from {
    transform: translate(-50%, -50%) rotateZ(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotateZ(360deg);
  }
}

@keyframes rotateOrbit2 {
  from {
    transform: translate(-50%, -50%) rotateZ(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotateZ(360deg);
  }
}

.orbit-object {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(124, 124, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(124, 124, 255, 0.6);
  backdrop-filter: blur(10px);
}

.orbit-object:hover {
  transform: scale(1.3);
  box-shadow: 0 0 40px rgba(124, 124, 255, 0.9);
  background: rgba(124, 124, 255, 1);
}

.orbit-object svg,
.orbit-object img {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Position objects on orbit paths - Keep them upright */
.orbit-path.path-1 .orbit-object:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-path.path-1 .orbit-object:nth-child(2) {
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
}

.orbit-path.path-2 .orbit-object:nth-child(1) {
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
}

.orbit-path.path-2 .orbit-object:nth-child(2) {
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
}

.object-tooltip {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 15, 20, 0.95);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  border: 1px solid rgba(124, 124, 255, 0.5);
  font-weight: 500;
}

.orbit-object:hover .object-tooltip {
  opacity: 1;
}

/* CTA */
.cta {
  text-align: center;
  padding: 5rem 8%;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta p {
  color: #9ca3af;
  font-size: 1.2rem;
  font-weight: 500;
}

/* FLOATING PARTICLES */
.particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: #7c7cff;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: float-particle 8s infinite;
  z-index: 0;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100px) translateX(100px);
    opacity: 0;
  }
}

/* ANIMATED TECH CUBE */
.tech-cube {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.cube {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 20s infinite linear;
}

.cube-face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(124, 124, 255, 0.1);
  border: 2px solid rgba(124, 124, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 30px rgba(124, 124, 255, 0.3);
}

.cube-face::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(124, 124, 255, 0.3);
}

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

@keyframes rotateCube {
  from {
    transform: rotateX(0deg) rotateY(0deg);
  }
  to {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

/* RESPONSIVE */
@media (max-width: 968px) {
  section {
    padding: 2.5rem 6%;
  }

  .navbar {
    padding: 1rem 6%;
  }

  .navbar ul {
    gap: 1.2rem;
    font-size: 0.9rem;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 5rem;
    min-height: 75vh;
    gap: 2rem;
  }

  .avatar-container {
    width: 250px;
    height: 250px;
  }

  .cube {
    width: 150px;
    height: 150px;
  }

  .cube-face {
    width: 150px;
    height: 150px;
    font-size: 2rem;
  }

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

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content .subtitle {
    font-size: 1rem;
  }

  .hero-intro {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .stats-bar {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .about h2 {
    font-size: 2.2rem;
  }

  .about p {
    font-size: 0.95rem;
  }

  .planet-3d {
    min-height: 500px;
    margin: 3rem 0;
    display: none;
  }

  #planetCanvas {
    height: 500px;
  }

  .orbit-objects {
    width: 450px;
    height: 450px;
  }

  .orbit-path.path-1 {
    width: 300px;
    height: 120px;
  }

  .orbit-path.path-2 {
    width: 400px;
    height: 160px;
  }

  .orbit-object {
    width: 50px;
    height: 50px;
  }

  .orbit-object svg,
  .orbit-object img {
    width: 26px;
    height: 26px;
  }

  .cta h2 {
    font-size: 2rem;
  }

  .cta p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  section {
    padding: 2rem 5%;
  }

  .navbar {
    padding: 0.9rem 5%;
  }

  .logo {
    font-size: 1.2rem;
  }

  .navbar ul {
    gap: 0.8rem;
    font-size: 0.8rem;
  }

  .hero {
    padding-top: 4.5rem;
    min-height: 70vh;
  }

  .avatar-container {
    width: 200px;
    height: 200px;
  }

  .cube {
    width: 120px;
    height: 120px;
  }

  .cube-face {
    width: 120px;
    height: 120px;
    font-size: 1.5rem;
  }

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

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content .subtitle {
    font-size: 0.9rem;
  }

  .hero-intro {
    font-size: 0.9rem;
  }

  .stats-bar {
    padding: 1.2rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 30px;
  }

  .about {
    padding: 3rem 5%;
  }

  .about h2 {
    font-size: 1.8rem;
  }

  .about p {
    font-size: 0.9rem;
  }

  .planet-3d {
    min-height: 400px;
    margin: 2rem 0;

    display: none;
  }

  #planetCanvas {
    height: 400px;
  }

  .orbit-objects {
    width: 350px;
    height: 350px;
  }

  .orbit-path.path-1 {
    width: 240px;
    height: 100px;
  }

  .orbit-path.path-2 {
    width: 320px;
    height: 130px;
  }

  .orbit-object {
    width: 45px;
    height: 45px;
  }

  .orbit-object svg,
  .orbit-object img {
    width: 22px;
    height: 22px;
  }

  .object-tooltip {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .cta {
    padding: 4rem 5%;
  }

  .cta h2 {
    font-size: 1.6rem;
  }

  .cta p {
    font-size: 0.9rem;
  }
}

/* ============================================
   MOBILE MENU STYLES - ADD THIS SECTION
   ============================================ */

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

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

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

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

/* Overlay when menu is open */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

/* TABLET RESPONSIVENESS (768px - 968px) */
@media (max-width: 968px) {
  section {
    padding: 2.5rem 5%;
  }

  .navbar {
    padding: 1rem 5%;
  }

  .navbar ul {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 5rem;
    min-height: auto;
    gap: 2.5rem;
  }

  .hero-intro {
    max-width: 100%;
    margin: 0 auto;
  }

  .avatar-container {
    width: 280px;
    height: 280px;
    margin: 0 auto;
  }

  .cube {
    width: 180px;
    height: 180px;
  }

  .cube-face {
    width: 180px;
    height: 180px;
    font-size: 2.5rem;
  }

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

  .stats-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
  }

  .about {
    padding: 3rem 5%;
  }

  /* PLANET FIXES FOR TABLET */
  .planet-3d {
    min-height: 500px;
    margin: 3rem 0;
    padding: 0;
    width: 100%;

    display: none;
  }

  #planetCanvas {
    height: 500px;
    max-width: 100%;
  }

  .orbit-objects {
    width: 500px;
    height: 500px;
  }

  .orbit-path.path-1 {
    width: 350px;
    height: 140px;
  }

  .orbit-path.path-2 {
    width: 450px;
    height: 180px;
  }

  .orbit-object {
    width: 52px;
    height: 52px;
  }

  .orbit-object svg,
  .orbit-object img {
    width: 28px;
    height: 28px;
  }
}

/* MOBILE MENU ACTIVATION (below 768px) */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Show hamburger menu */
  .menu-toggle {
    display: flex;
  }

  /* Hide and prepare menu for slide-in */
  .navbar ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(15, 15, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 5rem 2rem 2rem 2rem;
    gap: 2rem;
    transition: right 0.3s ease-in-out;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }

  .navbar ul.active {
    right: 0;
  }

  .navbar ul li {
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
  }

  .navbar ul.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .navbar ul.active li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .navbar ul.active li:nth-child(2) {
    transition-delay: 0.15s;
  }
  .navbar ul.active li:nth-child(3) {
    transition-delay: 0.2s;
  }
  .navbar ul.active li:nth-child(4) {
    transition-delay: 0.25s;
  }
  .navbar ul.active li:nth-child(5) {
    transition-delay: 0.3s;
  }
  .navbar ul.active li:nth-child(6) {
    transition-delay: 0.35s;
  }
  .navbar ul.active li:nth-child(7) {
    transition-delay: 0.4s;
  }
  .navbar ul.active li:nth-child(8) {
    transition-delay: 0.45s;
  }

  .navbar ul li a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
    width: 100%;
  }

  .navbar ul li a::after {
    bottom: 0;
  }

  /* Rest of mobile styles */
  section {
    padding: 2rem 4%;
  }

  .navbar {
    padding: 0.9rem 4%;
  }

  .logo {
    font-size: 1.3rem;
  }

  .hero {
    padding-top: 4.5rem;
    padding-bottom: 2rem;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content .subtitle {
    font-size: 1rem;
  }

  .hero-intro {
    font-size: 0.95rem;
  }

  .avatar-container {
    width: 240px;
    height: 240px;
  }

  .cube {
    width: 150px;
    height: 150px;
  }

  .cube-face {
    width: 150px;
    height: 150px;
    font-size: 2rem;
  }

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

  .stats-bar {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.3rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .about {
    padding: 2.5rem 4%;
  }

  .about h2 {
    font-size: 2rem;
  }

  .about p {
    font-size: 0.95rem;
  }

  /* CRITICAL PLANET FIXES FOR MOBILE */
  .planet-3d {
    min-height: 450px;
    margin: 2rem -4%;
    padding: 0;
    width: 100vw;
    overflow: hidden;

    display: none;
  }

  #planetCanvas {
    height: 450px;
    width: 100vw !important;
    max-width: 100vw;
  }

  .orbit-objects {
    width: 90vw;
    height: 450px;
    max-width: 450px;
  }

  .orbit-path.path-1 {
    width: min(300px, 80vw);
    height: 120px;
  }

  .orbit-path.path-2 {
    width: min(380px, 90vw);
    height: 152px;
  }

  .orbit-object {
    width: 48px;
    height: 48px;
  }

  .orbit-object svg,
  .orbit-object img {
    width: 24px;
    height: 24px;
  }

  .object-tooltip {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .cta {
    padding: 3.5rem 4%;
  }

  .cta h2 {
    font-size: 1.9rem;
  }
}

/* SMALL MOBILE (320px - 480px) */
@media (max-width: 480px) {
  section {
    padding: 1.5rem 3%;
  }

  .navbar {
    padding: 0.8rem 3%;
    flex-wrap: nowrap;
  }

  .logo {
    font-size: 1.1rem;
  }

  .navbar ul {
    width: 75%;
    max-width: 280px;
  }

  .hero {
    padding-top: 4rem;
    gap: 1.5rem;
  }

  .hero-content h1 {
    font-size: 1.7rem;
  }

  .hero-content .subtitle {
    font-size: 0.9rem;
  }

  .hero-intro {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .avatar-container {
    width: 200px;
    height: 200px;
  }

  .avatar-ring {
    inset: -8px;
    border-width: 2px;
  }

  .cube {
    width: 130px;
    height: 130px;
  }

  .cube-face {
    width: 130px;
    height: 130px;
    font-size: 1.7rem;
    border-width: 1.5px;
  }

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

  .stats-bar {
    padding: 1rem;
    gap: 0.8rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 25px;
    padding: 12px;
  }

  .about {
    padding: 2rem 3%;
  }

  .about h2 {
    font-size: 1.7rem;
  }

  .about p {
    font-size: 0.9rem;
  }

  /* ULTRA CRITICAL PLANET FIXES FOR SMALL PHONES */
  .planet-3d {
    min-height: 400px;
    margin: 1.5rem -3%;
    padding: 0;
    width: 100vw;
    overflow: hidden;

    display: none;
  }

  #planetCanvas {
    height: 400px;
    width: 100vw !important;
    max-width: 100vw;
  }

  .orbit-objects {
    width: 100vw;
    height: 400px;
    max-width: 380px;
  }

  .orbit-path.path-1 {
    width: 250px;
    height: 100px;
  }

  .orbit-path.path-2 {
    width: 320px;
    height: 128px;
  }

  .orbit-object {
    width: 44px;
    height: 44px;
  }

  .orbit-object svg,
  .orbit-object img {
    width: 22px;
    height: 22px;
  }

  .cta {
    padding: 3rem 3%;
  }

  .cta h2 {
    font-size: 1.6rem;
  }

  .cta p {
    font-size: 0.9rem;
  }
}

/* EXTRA SMALL PHONES (below 375px - iPhone SE, Galaxy Fold) */
@media (max-width: 375px) {
  .navbar ul {
    width: 80%;
    max-width: 260px;
    padding: 4.5rem 1.5rem 2rem 1.5rem;
  }

  .navbar ul li a {
    font-size: 1rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content .subtitle {
    font-size: 0.85rem;
  }

  .avatar-container {
    width: 170px;
    height: 170px;
  }

  .cube {
    width: 110px;
    height: 110px;
  }

  .cube-face {
    width: 110px;
    height: 110px;
    font-size: 1.5rem;
  }

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

  .stat-number {
    font-size: 1.6rem;
  }

  /* SMALLEST SCREENS PLANET FIX */
  .planet-3d {
    min-height: 350px;

    display: none;
  }

  #planetCanvas {
    height: 350px;
  }

  .orbit-objects {
    height: 350px;
    max-width: 320px;
  }

  .orbit-path.path-1 {
    width: 220px;
    height: 88px;
  }

  .orbit-path.path-2 {
    width: 280px;
    height: 112px;
  }

  .orbit-object {
    width: 40px;
    height: 40px;
  }

  .orbit-object svg,
  .orbit-object img {
    width: 20px;
    height: 20px;
  }

  .about h2 {
    font-size: 1.5rem;
  }

  .cta h2 {
    font-size: 1.4rem;
  }
}

/* PREVENT HORIZONTAL SCROLL */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

.skills-scroll {
  max-width: 100vw;
}
