/* Enhanced Cyberpunk Background */
body {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  padding: 0;
  color: #fff;
  background: #0a0a1a;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Cyberpunk Font for Headings */
h1, h2, h3, .nav-links {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
}

/* Enhanced 3D Background and Particles */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(to bottom, rgba(10, 10, 26, 0.9) 0%, rgba(10, 10, 26, 0.3) 100%),
    repeating-linear-gradient(45deg, 
      rgba(0, 255, 255, 0.05) 0px,
      rgba(0, 255, 255, 0.05) 2px,
      transparent 2px,
      transparent 20px
    ),
    repeating-linear-gradient(-45deg,
      rgba(255, 0, 255, 0.05) 0px,
      rgba(255, 0, 255, 0.05) 2px,
      transparent 2px,
      transparent 20px
    );
  z-index: -1;
  transform-style: preserve-3d;
  transform: perspective(1000px) translateZ(-10px);
  animation: backgroundShift 25s linear infinite;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.9);
}

@keyframes backgroundShift {
  0% {
    transform: perspective(1000px) translateZ(-10px) rotateX(0deg);
  }
  50% {
    transform: perspective(1000px) translateZ(-20px) rotateX(1deg);
  }
  100% {
    transform: perspective(1000px) translateZ(-10px) rotateX(0deg);
  }
}

/* Enhanced 3D Particles with Smoother Movement */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  perspective: 1000px;
  transform-style: preserve-3d;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(0, 255, 255, 0.4);
  border-radius: 50%;
  animation: smoothParticleFloat 20s linear infinite;
  box-shadow: 
    0 0 15px rgba(0, 255, 255, 0.3),
    0 0 25px rgba(0, 255, 255, 0.2);
}

.particle:nth-child(even) {
  background: rgba(255, 0, 255, 0.4);
  box-shadow: 
    0 0 15px rgba(255, 0, 255, 0.3),
    0 0 25px rgba(255, 0, 255, 0.2);
}

@keyframes smoothParticleFloat {
  0% {
    transform: 
      translateZ(0) 
      translateY(100vh) 
      rotateX(0deg) 
      scale(0.5);
    opacity: 0;
  }
  20% {
    opacity: 0.3;
    transform: 
      translateZ(-200px) 
      translateY(50vh) 
      rotateX(-20deg) 
      scale(1);
  }
  80% {
    opacity: 0.3;
    transform: 
      translateZ(-400px) 
      translateY(-50vh) 
      rotateX(20deg) 
      scale(1);
  }
  100% {
    transform: 
      translateZ(-600px) 
      translateY(-100vh) 
      rotateX(45deg) 
      scale(0.5);
    opacity: 0;
  }
}

/* Section Particles */
.section-particles .particle {
  animation: sectionParticleFloat 15s ease-in-out infinite;
}

@keyframes sectionParticleFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  20% {
    opacity: 0.3;
  }
  80% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) translateX(100px);
    opacity: 0;
  }
}

/* Header Particles */
.header-particles .particle {
  animation: headerParticleFloat 10s ease-in-out infinite;
}

@keyframes headerParticleFloat {
  0% {
    transform: translateX(-50px);
    opacity: 0;
  }
  20% {
    opacity: 0.2;
  }
  80% {
    opacity: 0.2;
  }
  100% {
    transform: translateX(50px);
    opacity: 0;
  }
}

/* Enhanced Matrix Grid Effect */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 0, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: -1;
  transform: perspective(1000px) rotateX(60deg) scale(2);
  transform-origin: center top;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: perspective(1000px) rotateX(60deg) translateY(0) scale(2);
  }
  100% {
    transform: perspective(1000px) rotateX(60deg) translateY(-50%) scale(2);
  }
}

/* Ambient Light Effect */
.ambient-light {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 255, 255, 0.05) 20%,
    rgba(255, 0, 255, 0.05) 40%,
    transparent 60%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ambientPulse 10s ease-in-out infinite;
}

@keyframes ambientPulse {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Enhanced Header with 3D Embossed Effect */
header {
  background: linear-gradient(145deg, #1a1a3d 0%, #3d1a3d 100%);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 255, 255, 0.2),
    0 0 40px rgba(255, 0, 255, 0.2);
  transform-style: preserve-3d;
  perspective: 1000px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  position: relative;
  transform-style: preserve-3d;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  position: relative;
  transition: all 0.3s ease;
  text-shadow: 
    0 1px 1px rgba(0, 255, 255, 0.5),
    0 -1px 1px rgba(255, 0, 255, 0.5);
  transform-style: preserve-3d;
  transform: translateZ(0);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

nav ul li a:hover {
  transform: translateZ(20px);
  text-shadow: 
    0 0 10px rgba(0, 255, 255, 0.8),
    0 0 20px rgba(255, 0, 255, 0.8);
}

nav ul li a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

nav ul li a:hover::before {
  transform: scaleX(1);
}

/* Section Particles Container */
.section-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

/* Header Particles */
.header-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.header-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(0, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  animation: headerParticleFloat 3s linear infinite;
}

@keyframes headerParticleFloat {
  0% {
    transform: translateX(-100%) translateY(-50%) translateZ(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) translateY(50%) translateZ(0);
    opacity: 0;
  }
}

/* Hero Section */
.hero {
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: glow 2s infinite alternate;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #00ffff;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  max-width: 600px;
  font-weight: 400;
  line-height: 1.8;
}

.hero-image {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.7);
  object-fit: cover;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Media Query for Responsive Design */
@media (max-width: 968px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-image {
    width: 300px;
    height: 300px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }
}

/* About Section - Updated Cyberpunk Style */
.about {
  padding: 4rem 2rem;
  position: relative;
  background: linear-gradient(145deg, #1a1a3d 0%, #3d1a3d 100%);
  border-radius: 15px;
  margin: 2rem;
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.2),
    0 0 40px rgba(255, 0, 255, 0.2),
    inset 0 0 50px rgba(0, 0, 0, 0.8);
}

/* Remove the rotating animation */
.about::after {
  display: none;
}

/* Enhanced 3D effect for content */
.about-content {
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  padding: 2rem;
  transform-style: preserve-3d;
  perspective: 1000px;
  box-shadow: 
    inset 0 0 30px rgba(0, 255, 255, 0.1),
    0 15px 25px rgba(0, 0, 0, 0.6);
}

.about-content p {
  position: relative;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(
    145deg,
    rgba(26, 26, 61, 0.8),
    rgba(61, 26, 61, 0.8)
  );
  border: 1px solid rgba(0, 255, 255, 0.1);
  border-radius: 10px;
  transform: translateZ(0);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.3),
    0 0 5px rgba(0, 255, 255, 0.2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: 400;
}

.about-content p:hover {
  transform: translateZ(30px);
  box-shadow: 
    0 5px 20px rgba(0, 255, 255, 0.3),
    0 0 15px rgba(255, 0, 255, 0.3);
  border: 1px solid rgba(0, 255, 255, 0.3);
  background: linear-gradient(
    145deg,
    rgba(26, 26, 61, 0.9),
    rgba(61, 26, 61, 0.9)
  );
}

/* Cyberpunk heading style */
.about h2 {
  color: transparent;
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 3rem;
  position: relative;
  text-shadow: 
    2px 2px 4px rgba(0, 255, 255, 0.3),
    -2px -2px 4px rgba(255, 0, 255, 0.3);
}

/* Neon border effect on hover */
.about-content p::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  pointer-events: none;
  transition: 0.5s;
  opacity: 0;
  box-shadow: 
    0 0 10px rgba(0, 255, 255, 0.3),
    0 0 20px rgba(0, 255, 255, 0.3),
    0 0 30px rgba(255, 0, 255, 0.3);
}

.about-content p:hover::before {
  opacity: 1;
}

/* Text highlight effect */
.about-content p em {
  font-style: normal;
  color: #00ffff;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about {
    margin: 1rem;
    padding: 2rem 1rem;
  }
  
  .about h2 {
    font-size: 2rem;
    letter-spacing: 2px;
  }
  
  .about-content p {
    font-size: 1rem;
    padding: 1rem;
  }
}

/* Skills Section */
.skills {
  padding: 4rem 1rem;
  text-align: center;
}

/* Skills Grid Adjustment */
.skills-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;  /* Reduced from 2rem */
}

/* Reduced Skills Container Size */
.skill-card {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem;  /* Reduced from 1.5rem */
  border-radius: 8px;  /* Reduced from 10px */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  width: 150px;  /* Reduced from 200px */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card i {
  font-size: 1.5rem;  /* Reduced from 2rem */
  margin-bottom: 0.5rem;  /* Reduced from 1rem */
  color: #00ffff;
}

.skill-card h3 {
  font-size: 0.9rem;  /* Reduced from 1.1rem */
}

.skill-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.7);
}

/* Skills Categories */
.skills-categories {
  margin: 2rem 0;
}

.skill-category {
  margin-bottom: 3rem;
}

.skill-category h3 {
  color: #00ffff;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Enhanced Soft Skills Section */
.soft-skills {
  margin: 4rem auto;
  padding: 3rem 2rem;
  max-width: 1400px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
}

.soft-skills h3 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: #00ffff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.soft-skills-container {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Image Containers */
.skill-images {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.skill-images img {
  width: 180px;
  height: 180px;
  border-radius: 15px;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.2),
    0 0 40px rgba(255, 0, 255, 0.1);
}

/* Center Content */
.soft-skills-content {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 2rem;
}

.soft-skill-card {
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.soft-skill-card i {
  font-size: 2.5rem;
  color: #00ffff;
  transition: all 0.3s ease;
}

.soft-skill-card h3 {
  font-size: 1.2rem;
  margin: 0;
  color: #fff;
}

.soft-skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 255, 0.3);
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(0, 255, 255, 0.2);
}

.soft-skill-card:hover i {
  transform: scale(1.1);
  color: #ff00ff;
}

/* Specific Image Positioning */
.skill-images.left img {
  transform: translateX(-20px);
}

.skill-images.right img {
  transform: translateX(20px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .soft-skills-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .skill-images {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }

  .skill-images img {
    width: 150px;
    height: 150px;
  }

  .skill-images.left img,
  .skill-images.right img {
    transform: none;
  }

  .soft-skills-content {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
  }
}

@media (max-width: 768px) {
  .soft-skills {
    padding: 2rem 1rem;
  }

  .skill-images {
    flex-wrap: wrap;
  }

  .skill-images img {
    width: 120px;
    height: 120px;
  }

  .soft-skills-content {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
  }
}

/* Enhanced Soft Skills Section */
.soft-skills {
  margin-top: 4rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

/* Soft Skills Section Adjustments */
.soft-skills-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.2fr;  /* Adjusted right column width */
  gap: 2rem;
  align-items: center;
  perspective: 1000px;
}

/* Creative Image Layout */
.skill-images {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 1.5rem;
  height: 100%;
  transform-style: preserve-3d;
}

.skill-images.left {
  transform: perspective(1000px) rotateY(15deg);
}

/* Right Images Positioning - More towards right */
.skill-images.right {
  transform: perspective(1000px) rotateY(-15deg) translateX(20px);  /* Added translateX */
}

.skill-images img {
  width: 150px;
  height: 150px;
  border-radius: 15px;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.2),
    0 0 40px rgba(255, 0, 255, 0.1);
}

/* Left Images Positioning */
.skill-images.left img:nth-child(1) {
  transform: translateX(20%) rotate(-5deg);
  animation: floatLeft 6s ease-in-out infinite;
}

.skill-images.left img:nth-child(2) {
  transform: translateX(10%) rotate(5deg);
  animation: floatLeft 6s ease-in-out infinite 2s;
}

.skill-images.left img:nth-child(3) {
  transform: translateX(30%) rotate(-3deg);
  animation: floatLeft 6s ease-in-out infinite 4s;
}

/* Right Images Positioning */
.skill-images.right img:nth-child(1) {
  transform: translateX(-10%) rotate(5deg);  /* Adjusted from -20% */
  animation: floatRight 6s ease-in-out infinite 1s;
}

.skill-images.right img:nth-child(2) {
  transform: translateX(0%) rotate(-5deg);  /* Adjusted from -10% */
  animation: floatRight 6s ease-in-out infinite 3s;
}

.skill-images.right img:nth-child(3) {
  transform: translateX(10%) rotate(3deg);  /* Adjusted from -30% */
  animation: floatRight 6s ease-in-out infinite 5s;
}

/* Hover Effects */
.skill-images img:hover {
  transform: scale(1.1) translateZ(30px);
  box-shadow: 
    0 0 30px rgba(0, 255, 255, 0.4),
    0 0 60px rgba(255, 0, 255, 0.2);
  z-index: 2;
}

/* Float Animations */
@keyframes floatLeft {
  0%, 100% {
    transform: translateX(20%) translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateX(20%) translateY(-15px) rotate(-2deg);
  }
}

/* Updated float animation for right images */
@keyframes floatRight {
  0%, 100% {
    transform: translateX(10%) translateY(0) rotate(5deg);  /* Adjusted X position */
  }
  50% {
    transform: translateX(15%) translateY(-15px) rotate(2deg);  /* Adjusted X position */
  }
}

/* Center Content Styling */
.soft-skills-content {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 2rem;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.soft-skill-card {
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
  border: 1px solid rgba(0, 255, 255, 0.1);
}

.soft-skill-card:hover {
  transform: translateZ(50px);
  box-shadow: 
    0 0 30px rgba(0, 255, 255, 0.3),
    0 0 60px rgba(255, 0, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .soft-skills-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .skill-images {
    grid-template-rows: 1fr;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }

  .skill-images.left, .skill-images.right {
    transform: none;
  }

  .skill-images img {
    width: 120px;
    height: 120px;
  }

  .skill-images.left img, .skill-images.right img {
    transform: none;
  }

  .soft-skills-content {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    gap: 1rem;
  }

  .skill-card {
    width: 120px;
  }
  
  .skill-card i {
    font-size: 1.3rem;
  }
  
  .skill-card h3 {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .soft-skills-content {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
  }

  .skill-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .skill-images img {
    width: 80px;  /* Reduced from 100px */
    height: 80px;  /* Reduced from 100px */
  }

  .skill-images img:nth-child(3) {
    grid-column: span 2;
    justify-self: center;
  }

  .skill-card {
    width: 100px;
  }
}

/* Research Section */
.research {
  padding: 4rem 1rem;
  text-align: center;
}

.research-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.research-card {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-card h3 {
  color: #00ffff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.research-card p {
  color: #ff00ff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
}

.research-card a {
  color: #00ffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.research-card a:hover {
  color: #ff00ff;
}

.research-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
}

/* Projects Section */
.projects {
  padding: 4rem 1rem;
  text-align: center;
}

.projects-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.project-card {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  width: 400px;
  min-height: 450px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tech-stack {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0;
  font-family: 'JetBrains Mono', monospace;
}

.tech-stack i {
  font-size: 1.8rem;
  color: #00ffff;
  transition: transform 0.3s ease;
}

.tech-stack i:hover {
  transform: scale(1.2);
  color: #ff00ff;
}

.project-details {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.project-details h4 {
  color: #00ffff;
  margin-bottom: 0.5rem;
}

.project-card p {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
  margin: 1rem 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
}

@media (max-width: 768px) {
  .project-card {
    width: 100%;
    min-height: auto;
  }
}

/* GitHub Section */
.github {
  padding: 4rem 1rem;
  text-align: center;
}

.github-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.github-content i {
  font-size: 3rem;
  color: #00ffff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.github-content i:hover {
  transform: scale(1.2);
  color: #ff00ff;
}

/* Contact Section */
.contact {
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
}

.contact form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.1),
    0 0 40px rgba(255, 0, 255, 0.1);
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.contact input, .contact textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 5px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.3s ease;
}

.contact input:focus, .contact textarea:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.contact button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.contact button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

.contact button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Contact Form Success/Error Messages */
.success-message,
.error-message {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 5px;
  text-align: center;
  animation: slideIn 0.3s ease-out;
}

.success-message {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #00ff00;
  color: #00ff00;
}

.error-message {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid #ff0000;
  color: #ff0000;
}

@keyframes slideIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Footer */
footer {
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
}

footer .footer-links a {
  color: #00ffff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

footer .footer-links a:hover {
  color: #ff00ff;
}

footer p {
  margin: 0.5rem 0;
}

/* Updated Project Cards Styling */
.project-card {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  width: 400px;
  min-height: 450px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tech-stack {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0;
}

.tech-stack i {
  font-size: 1.8rem;
  color: #00ffff;
  transition: transform 0.3s ease;
}

.tech-stack i:hover {
  transform: scale(1.2);
  color: #ff00ff;
}

.project-details {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.project-details h4 {
  color: #00ffff;
  margin-bottom: 0.5rem;
}

.project-card p {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
  margin: 1rem 0;
}

@media (max-width: 768px) {
  .project-card {
    width: 100%;
    min-height: auto;
  }
}

/* =========================================================*/
/* Card hover effects */
.project-card, .research-card, .skill-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card::before, .research-card::before, .skill-card::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;
}

.project-card:hover::before, .research-card:hover::before, .skill-card:hover::before {
  left: 100%;
}

.project-card:hover, .research-card:hover, .skill-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

/* Improved Text Glitch Effect */
@keyframes glitch {
  0% {
    text-shadow: 
      0.05em 0 0 rgba(255, 0, 0, 0.75),
      -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
      0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }
  14% {
    text-shadow: 
      0.05em 0 0 rgba(255, 0, 0, 0.75),
      -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }
  15% {
    text-shadow: 
      -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
      0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
      -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  49% {
    text-shadow: 
      -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
      0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
      -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  50% {
    text-shadow: 
      0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
      0.05em 0 0 rgba(0, 255, 0, 0.75),
      0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  99% {
    text-shadow: 
      0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
      0.05em 0 0 rgba(0, 255, 0, 0.75),
      0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  100% {
    text-shadow: 
      -0.025em 0 0 rgba(255, 0, 0, 0.75),
      -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
}

/* Text glitch effect for headings */
h1:hover, h2:hover {
  animation: glitch 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  text-shadow: 
    0 0 10px rgba(0, 255, 255, 0.8),
    0 0 20px rgba(0, 255, 255, 0.4),
    0 0 30px rgba(255, 0, 255, 0.6);
}

/* Skill icons rotation */
.skill-card i {
  transition: transform 0.6s ease;
}

.skill-card:hover i {
  transform: rotateY(360deg);
}

/* Enhanced Section Transitions */
section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.17, 0.85, 0.438, 0.99);
  position: relative;
  overflow: hidden;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 255, 0.5),
    rgba(255, 0, 255, 0.5),
    transparent
  );
}

/* Smooth section transitions */
section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/*=====================================================================================*/

/* About Section Animations */
.about-content p {
  position: relative;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.about-content p::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, #00ffff, #ff00ff);
  transition: height 0.6s ease;
}

.about.visible .about-content p {
  opacity: 1;
  transform: translateX(0);
}

.about.visible .about-content p::before {
  height: 100%;
  top: 0;
}

/* Stagger animation delay for paragraphs */
.about.visible .about-content p:nth-child(1) {
  transition-delay: 0.2s;
}

.about.visible .about-content p:nth-child(2) {
  transition-delay: 0.4s;
}

.about.visible .about-content p:nth-child(3) {
  transition-delay: 0.6s;
}

/* Glowing border animation */
.about {
  position: relative;
  overflow: hidden;
}

.about::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    rgba(0, 255, 255, 0.3),
    transparent 30%
  );
  animation: rotateBorder 8s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about:hover::after {
  opacity: 1;
}

@keyframes rotateBorder {
  100% {
    transform: rotate(360deg);
  }
}

/* Text highlight effect */
.about-content p:hover {
  background: linear-gradient(90deg, 
    rgba(0, 255, 255, 0.1), 
    rgba(255, 0, 255, 0.1)
  );
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* Base Typography */
body {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.6;
}

/* Headings Typography */
h1, h2, h3, .nav-links {
  font-family: 'Orbitron', sans-serif;
}

/* Code-like elements */
.tech-stack, .project-details p, .skill-card h3 {
  font-family: 'JetBrains Mono', monospace;
}

/* Hero Section Typography */
.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-description {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
}

/* Section Headings */
section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Navigation */
nav ul li a {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

/* Project Cards */
.project-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.project-card p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
}

/* Skills Section */
.skill-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Contact Form */
.contact input, .contact textarea {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
}

.contact button {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Footer */
footer {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
}

/* Research Section */
.research-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.research-card p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* About Section */
.about-content p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: 400;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.4rem;
  }

  section h2 {
    font-size: 2rem;
  }

  .project-card h3 {
    font-size: 1.2rem;
  }
}

/* Certificates Section */
.certificates {
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.certificates h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: transparent;
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.certificates-container {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 2rem 0;
}

.certificates-scroll {
  display: flex;
  gap: 2rem;
  animation: scrollCertificates 40s linear infinite;
  padding: 1rem;
}

.certificates-scroll:hover {
  animation-play-state: paused;
}

.certificate-card {
  min-width: 300px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.certificate-card:hover {
  transform: translateY(-10px) rotateY(10deg);
  box-shadow: 
    0 0 30px rgba(0, 255, 255, 0.3),
    0 0 60px rgba(255, 0, 255, 0.2);
}

.certificate-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid rgba(0, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

.certificate-card:hover img {
  transform: scale(1.05);
}

.certificate-info {
  padding: 1.5rem;
}

.certificate-info h3 {
  color: #00ffff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-family: 'Orbitron', sans-serif;
}

.certificate-info p {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
  font-family: 'Space Grotesk', sans-serif;
}

@keyframes scrollCertificates {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-300px * 6 - 2rem * 6));
  }
}

/* Media Queries */
@media (max-width: 768px) {
  .certificates h2 {
    font-size: 2rem;
  }

  .certificate-card {
    min-width: 250px;
  }

  .certificate-info h3 {
    font-size: 1rem;
  }

  .certificate-info p {
    font-size: 0.8rem;
  }

  @keyframes scrollCertificates {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-250px * 6 - 2rem * 6));
    }
  }
}

/* Blog Section */
.blog {
  padding: 4rem 2rem;
  position: relative;
}

.blog-grid {
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.blog-card {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 1px solid rgba(0, 255, 255, 0.1);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 255, 0.3);
}

.blog-tag {
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.blog-date {
  color: #00ffff;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-excerpt {
  color: #fff;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-link {
  color: #00ffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.blog-link:hover {
  color: #ff00ff;
}

/* CTA Buttons */
.cta-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.cta-button {
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cta-container {
    flex-direction: column;
    align-items: center;
  }
}