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

:root {
  --primary-bg: #0b0c0f;
  --secondary-bg: #1a1d23;
  --accent-color: #00a9e2;
  --text-color: #ffffff;
  --text-secondary: #b0b3b8;
  --card-bg: rgba(33, 37, 46, 0.9);
  --shadow-color: rgba(0, 169, 226, 0.3);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--primary-bg);
  color: var(--text-color);
  overflow-x: hidden;
  perspective: 1000px;
}

.scene {
  min-height: 100vh;
  position: relative;
  transform-style: preserve-3d;
}

/* Advanced 3D Morphing Navigation - Optimized */
.nav-3d-morph {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 1000;
  width: 250px;
  height: 250px;
  perspective: 1000px;
  transform-style: preserve-3d;
  will-change: transform;
}

.morph-3d-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  animation: containerFloat 8s ease-in-out infinite;
}

@keyframes containerFloat {
  0%, 100% { transform: translateZ(0px) rotateY(0deg); }
  50% { transform: translateZ(15px) rotateY(1deg); }
}

/* 3D Morphing Shape - Optimized */
.morph-3d-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform-style: preserve-3d;
  transform: translate3d(-50%, -50%, 0);
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.shape-faces {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.face {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-color), rgba(255, 255, 255, 0.1));
  border: 1px solid var(--accent-color);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  backface-visibility: hidden;
  will-change: opacity, transform;
}

/* Hexagon Configuration (Home) */
.nav-3d-morph[data-shape="home"] .face-1 {
  transform: rotateY(0deg) translateZ(60px);
  opacity: 0.8;
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}

.nav-3d-morph[data-shape="home"] .face-2 {
  transform: rotateY(60deg) translateZ(60px);
  opacity: 0.8;
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}

.nav-3d-morph[data-shape="home"] .face-3 {
  transform: rotateY(120deg) translateZ(60px);
  opacity: 0.8;
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}

.nav-3d-morph[data-shape="home"] .face-4 {
  transform: rotateY(180deg) translateZ(60px);
  opacity: 0.8;
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}

.nav-3d-morph[data-shape="home"] .face-5 {
  transform: rotateY(240deg) translateZ(60px);
  opacity: 0.8;
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}

.nav-3d-morph[data-shape="home"] .face-6 {
  transform: rotateY(300deg) translateZ(60px);
  opacity: 0.8;
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}

/* Star Configuration (Projects) */
.nav-3d-morph[data-shape="projects"] .face-7 {
  transform: rotateY(0deg) translateZ(70px) rotateZ(45deg);
  opacity: 0.9;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.nav-3d-morph[data-shape="projects"] .face-8 {
  transform: rotateY(90deg) translateZ(70px) rotateZ(45deg);
  opacity: 0.9;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.nav-3d-morph[data-shape="projects"] .face-9 {
  transform: rotateY(180deg) translateZ(70px) rotateZ(45deg);
  opacity: 0.9;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.nav-3d-morph[data-shape="projects"] .face-10 {
  transform: rotateY(270deg) translateZ(70px) rotateZ(45deg);
  opacity: 0.9;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Diamond Configuration (Contact) */
.nav-3d-morph[data-shape="contact"] .face-11 {
  transform: rotateX(0deg) translateZ(60px);
  opacity: 0.85;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.nav-3d-morph[data-shape="contact"] .face-12 {
  transform: rotateX(180deg) translateZ(60px);
  opacity: 0.85;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.shape-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, var(--accent-color), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 40px var(--accent-color);
  animation: corePulse3D 3s ease-in-out infinite alternate;
}

@keyframes corePulse3D {
  0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 40px var(--accent-color); }
  100% { transform: translate(-50%, -50%) scale(1.5); box-shadow: 0 0 80px var(--accent-color), 0 0 120px rgba(0, 169, 226, 0.5); }
}

/* 3D Navigation Nodes - Optimized */
.nav-nodes-3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.nav-node-3d {
  position: absolute;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.node-3d-content {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-bg));
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 169, 226, 0.4);
  transform-style: preserve-3d;
  will-change: transform, background;
}

.nav-node-3d:hover .node-3d-content {
  transform: scale3d(1.2, 1.2, 1.2) rotateY(15deg) rotateX(15deg);
  background: linear-gradient(135deg, var(--text-color), var(--accent-color));
}

.node-3d-glow {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: radial-gradient(circle, var(--accent-color), transparent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: opacity;
}

.nav-node-3d:hover .node-3d-glow {
  opacity: 0.8;
  animation: nodeGlow3D 3s ease-in-out infinite;
}

@keyframes nodeGlow3D {
  0%, 100% { transform: scale3d(1, 1, 1) rotateZ(0deg); opacity: 0.3; }
  50% { transform: scale3d(1.3, 1.3, 1.3) rotateZ(180deg); opacity: 0.8; }
}

.node-particles-3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  transform-style: preserve-3d;
}

.node-particles-3d::before,
.node-particles-3d::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat3D 4s ease-in-out infinite;
}

.node-particles-3d::before {
  top: -15px;
  left: 25px;
  animation-delay: 0s;
  transform-origin: 0px 15px;
}

.node-particles-3d::after {
  top: 25px;
  right: -15px;
  animation-delay: 2s;
  transform-origin: -15px 0px;
}

@keyframes particleFloat3D {
  0%, 100% {
    transform: translateZ(0px) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translateZ(20px) scale(1.5);
    opacity: 0.4;
  }
  50% {
    transform: translateZ(40px) scale(0.8);
    opacity: 0.2;
  }
  75% {
    transform: translateZ(20px) scale(1.2);
    opacity: 0.6;
  }
}

.nav-node-3d:hover .node-particles-3d::before,
.nav-node-3d:hover .node-particles-3d::after {
  opacity: 1;
}

/* 3D Particle Field - Optimized */
.particle-field-3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  pointer-events: none;
}

.particle-3d {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 50%;
  opacity: 0.6;
  will-change: transform;
  /* Remove individual animations - handled by JS */
}

.particle-3d:nth-child(1) { top: 20%; left: 20%; }
.particle-3d:nth-child(2) { top: 30%; left: 70%; }
.particle-3d:nth-child(3) { top: 70%; left: 30%; }
.particle-3d:nth-child(4) { top: 80%; left: 80%; }
.particle-3d:nth-child(5) { top: 10%; left: 60%; }
.particle-3d:nth-child(6) { top: 60%; left: 10%; }

/* Energy Vortex - Optimized */
.energy-vortex {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  transform-style: preserve-3d;
}

.vortex-ring {
  position: absolute;
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  will-change: transform;
}

.ring-1 {
  width: 140px;
  height: 140px;
  top: -70px;
  left: -70px;
  opacity: 0.3;
}

.ring-2 {
  width: 180px;
  height: 180px;
  top: -90px;
  left: -90px;
  opacity: 0.2;
}

.ring-3 {
  width: 220px;
  height: 220px;
  top: -110px;
  left: -110px;
  opacity: 0.1;
}

@keyframes vortexSpin {
  0% { transform: rotateZ(0deg) scale3d(1, 1, 1); }
  100% { transform: rotateZ(360deg) scale3d(1, 1, 1); }
}

.vortex-core {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 10px;
  height: 10px;
  background: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent-color);
  will-change: transform;
}

/* Holographic Grid - Optimized */
.holo-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  opacity: 0.3;
}

.grid-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  will-change: opacity;
}

.line-1 {
  top: 25%;
  left: 0;
  width: 100%;
  height: 1px;
}

.line-2 {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.line-3 {
  top: 75%;
  left: 0;
  width: 100%;
  height: 1px;
}

.line-4 {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--accent-color), transparent);
}

/* Active States */
.nav-node-3d.active {
  transform: scale(1.4) translateZ(50px) !important;
}

.nav-node-3d.active .node-3d-content {
  background: var(--text-color);
  color: var(--accent-color);
  box-shadow: 0 0 50px var(--shadow-color);
  animation: activePulse3D 1.5s ease-in-out infinite alternate;
}

@keyframes activePulse3D {
  0% { box-shadow: 0 0 50px var(--shadow-color); }
  100% { box-shadow: 0 0 80px var(--shadow-color), 0 0 120px var(--accent-color); }
}

.nav-node-3d.active .node-particles-3d::before,
.nav-node-3d.active .node-particles-3d::after {
  opacity: 1;
  animation-duration: 3s;
}

/* Morphing Animation Triggers */
.nav-3d-morph[data-shape="home"] .morph-3d-shape {
  animation: morphToHexagon 1.5s ease-in-out;
}

.nav-3d-morph[data-shape="projects"] .morph-3d-shape {
  animation: morphToStar 1.5s ease-in-out;
}

.nav-3d-morph[data-shape="contact"] .morph-3d-shape {
  animation: morphToDiamond 1.5s ease-in-out;
}

@keyframes morphToHexagon {
  0% { transform: translate(-50%, -50%) scale(0.5) rotateY(0deg); }
  50% { transform: translate(-50%, -50%) scale(1.2) rotateY(180deg); }
  100% { transform: translate(-50%, -50%) scale(1) rotateY(360deg); }
}

@keyframes morphToStar {
  0% { transform: translate(-50%, -50%) scale(0.5) rotateX(0deg); }
  50% { transform: translate(-50%, -50%) scale(1.3) rotateX(180deg); }
  100% { transform: translate(-50%, -50%) scale(1) rotateX(360deg); }
}

@keyframes morphToDiamond {
  0% { transform: translate(-50%, -50%) scale(0.5) rotateZ(0deg); }
  50% { transform: translate(-50%, -50%) scale(1.2) rotateZ(180deg); }
  100% { transform: translate(-50%, -50%) scale(1) rotateZ(360deg); }
}

/* Content Sections - Show Multiple Sections */
.content-3d {
  position: relative;
  transform-style: preserve-3d;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.section-3d {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  opacity: 1;
  transform: translateZ(0) rotateY(0);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-3d.active {
  opacity: 1;
  transform: translateZ(0) rotateY(0);
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.floating-sphere {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.sphere-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.sphere-2 {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
  width: 15px;
  height: 15px;
}

.sphere-3 {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
  width: 25px;
  height: 25px;
}

.floating-cube {
  position: absolute;
  width: 30px;
  height: 30px;
  background: linear-gradient(45deg, var(--accent-color), transparent);
  animation: floatRotate 8s ease-in-out infinite;
}

.cube-1 {
  top: 15%;
  right: 20%;
  animation-delay: 0s;
}

.cube-2 {
  top: 70%;
  left: 15%;
  animation-delay: 3s;
  width: 25px;
  height: 25px;
}

.cube-3 {
  bottom: 20%;
  right: 25%;
  animation-delay: 6s;
  width: 35px;
  height: 35px;
}

.floating-ring {
  position: absolute;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  animation: pulseRing 4s ease-in-out infinite;
}

.ring-1 {
  width: 50px;
  height: 50px;
  top: 25%;
  left: 25%;
  animation-delay: 0s;
}

.ring-2 {
  width: 30px;
  height: 30px;
  top: 65%;
  right: 30%;
  animation-delay: 1.5s;
}

.ring-3 {
  width: 40px;
  height: 40px;
  bottom: 25%;
  left: 30%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes floatRotate {
  0%, 100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
  33% { transform: translateY(-30px) rotateX(120deg) rotateY(120deg); }
  66% { transform: translateY(-15px) rotateX(240deg) rotateY(240deg); }
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
  50% { transform: scale(1.5) rotate(180deg); opacity: 0.3; }
}

/* Content Cards */
.content-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  max-width: 800px;
  width: 90%;
  text-align: center;
  transform-style: preserve-3d;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: cardEntrance 1s ease-out;
}

@keyframes cardEntrance {
  0% { transform: translateY(50px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Typography */
.animated-text {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--accent-color), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
  0% { filter: drop-shadow(0 0 10px var(--accent-color)); }
  100% { filter: drop-shadow(0 0 20px var(--accent-color)); }
}

.subtitle {
  margin-bottom: 30px;
}

.typewriter {
  font-size: 1.2rem;
  color: var(--accent-color);
  border-right: 2px solid var(--accent-color);
  animation: typing 3s steps(22) 1s both, blink 0.75s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent-color); }
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 10px 0;
  color: var(--text-secondary);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* Social Media */
.social-media-3d {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: var(--primary-bg);
  border-radius: 50%;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  transform: translateZ(0);
}

.social-icon:hover {
  transform: translateZ(20px) scale(1.2);
  box-shadow: 0 10px 30px var(--shadow-color);
}

/* Projects Grid */
.projects-grid-3d {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card-3d {
  perspective: 1000px;
  height: 300px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.project-card-3d:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
}

.card-front {
  background: var(--secondary-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card-front img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.card-front h3 {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.card-back {
  background: var(--accent-color);
  color: var(--primary-bg);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card-back h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.card-back p {
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.project-link {
  background: var(--primary-bg);
  color: var(--accent-color);
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--text-color);
  transform: scale(1.05);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: var(--secondary-bg);
  border-radius: 15px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  transform: translateZ(0);
}

.contact-item:hover {
  transform: translateZ(30px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary-bg);
}

.contact-item span {
  font-weight: 600;
  color: var(--accent-color);
}

/* Mouse Follower */
.mouse-follower {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

/* Footer */
.copyright-3d {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  font-size: 0.9rem;
  z-index: 1000;
}

.copyright-3d a {
  color: var(--accent-color);
  text-decoration: none;
}

.copyright-3d a:hover {
  text-shadow: 0 0 10px var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-orbital {
    top: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
  }

  .nav-orb {
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    transform-origin: 0px 70px;
  }

  .home-orb {
    transform: rotateZ(0deg) translateY(-70px);
  }

  .projects-orb {
    transform: rotateZ(120deg) translateY(-70px);
  }

  .contact-orb {
    transform: rotateZ(240deg) translateY(-70px);
  }

  .orb-content {
    font-size: 10px;
  }

  .orb-content i {
    font-size: 14px;
  }

  .orb-content span {
    font-size: 7px;
  }

  .line {
    width: 70px;
    transform-origin: 0px 50%;
  }

  .line-1 {
    transform: rotateZ(0deg) translateX(-35px);
  }

  .line-2 {
    transform: rotateZ(120deg) translateX(-35px);
  }

  .line-3 {
    transform: rotateZ(240deg) translateX(-35px);
  }

  .mouse-follower {
    display: none;
  }

  .animated-text {
    font-size: 2rem;
  }

  .content-card {
    padding: 30px 20px;
  }

  .projects-grid-3d {
    grid-template-columns: 1fr;
  }

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

  .social-media-3d {
    gap: 15px;
  }

  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .animated-text {
    font-size: 1.8rem;
  }

  .content-card {
    padding: 25px 15px;
  }
}