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

/* Loading Screen Styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease; /* Longer transition for mobile */
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-container {
  text-align: center;
  color: white;
}

.solar-system-loader {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 40px;
}

.sun {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, #ffd700, #ff8c00);
  border-radius: 50%;
  box-shadow: 0 0 30px #ffd700, 0 0 60px #ff8c00;
  animation: pulse 4s ease-in-out infinite; /* Much slower base pulse */
}

.planet-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 {
  width: 80px;
  height: 80px;
  animation: rotate 8s linear infinite; /* Much slower base animation */
}

.orbit-2 {
  width: 120px;
  height: 120px;
  animation: rotate 12s linear infinite reverse; /* Much slower base animation */
}

.orbit-3 {
  width: 160px;
  height: 160px;
  animation: rotate 16s linear infinite; /* Much slower base animation */
}

.planet {
  position: absolute;
  border-radius: 50%;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}

.planet-1 {
  width: 8px;
  height: 8px;
  background: #4ecdc4;
  box-shadow: 0 0 10px #4ecdc4;
}

.planet-2 {
  width: 6px;
  height: 6px;
  background: #ff6b6b;
  box-shadow: 0 0 8px #ff6b6b;
}

.planet-3 {
  width: 10px;
  height: 10px;
  background: #4dabf7;
  box-shadow: 0 0 12px #4dabf7;
}

.loading-text h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #4ecdc4, #44a08d, #4dabf7);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 2s ease-in-out infinite;
}

.loading-text p {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 20px;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background: #4ecdc4;
  border-radius: 50%;
  animation: bounce 2.5s ease-in-out infinite both; /* Much slower bounce */
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.4s; /* Longer delay for better wave effect */
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.8s; /* Longer delay for better wave effect */
}

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

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes bounce {
  0%, 85%, 100% { 
    transform: scale(0.7);
    opacity: 0.4;
  }
  42% { 
    transform: scale(1.3);
    opacity: 1;
  }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Mobile-specific slower loading animations */
@media (max-width: 768px) {
  .loading-screen {
    transition: opacity 1s ease, visibility 1s ease; /* Even longer transition for mobile */
  }
  
  .orbit-1 {
    animation: rotate 12s linear infinite; /* Extremely slow orbits for mobile */
  }
  
  .orbit-2 {
    animation: rotate 18s linear infinite reverse;
  }
  
  .orbit-3 {
    animation: rotate 24s linear infinite;
  }
  
  .sun {
    animation: pulse 6s ease-in-out infinite; /* Much slower pulse for mobile */
  }
  
  .loading-dots span {
    animation: bounce 3.5s ease-in-out infinite both; /* Much slower bounce animation */
  }
  
  .loading-dots span:nth-child(2) {
    animation-delay: 0.6s; /* Longer delays for mobile */
  }
  
  .loading-dots span:nth-child(3) {
    animation-delay: 1.2s;
  }
  
  .loading-text h2, .loading-text p {
    animation: gradientShift 6s ease-in-out infinite; /* Slower text animations */
  }
}

/* Small mobile devices - even slower */
@media (max-width: 480px) {
  .orbit-1 {
    animation: rotate 15s linear infinite; /* Extremely slow for small mobile */
  }
  
  .orbit-2 {
    animation: rotate 22s linear infinite reverse;
  }
  
  .orbit-3 {
    animation: rotate 30s linear infinite;
  }
  
  .sun {
    animation: pulse 8s ease-in-out infinite; /* Very slow pulse */
  }
  
  .loading-dots span {
    animation: bounce 4s ease-in-out infinite both; /* Slowest bounce */
  }
  
  .loading-dots span:nth-child(2) {
    animation-delay: 0.8s;
  }
  
  .loading-dots span:nth-child(3) {
    animation-delay: 1.6s;
  }
}

/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
  /* Support for safe areas on mobile */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
  color: white;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
  touch-action: manipulation; /* Improve touch performance */
  /* Reset padding for safe areas - handle it per element */
  padding: 0;
}

/* Logo */
.logo {
  position: fixed;
  top: 40px;
  left: 50px;
  z-index: 1000;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
  color: white;
  text-transform: uppercase;
}

/* Mobile Logo Fix */
@media (max-width: 768px) {
  .logo {
    top: 20px;
    left: 20px;
    font-size: 18px;
    letter-spacing: 1px;
  }
  
  .logo span {
    font-size: 9px;
    letter-spacing: 4px;
  }
}

.logo span {
  display: block;
  font-size: 11px;
  font-weight: 300;
  opacity: 0.6;
  letter-spacing: 6px;
  margin-top: 4px;
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 50%;
  left: 50px;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nav-item {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 15px 20px;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  width: 220px;
  text-align: left;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  font-size: 16px;
}

.nav-item::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: left 0.6s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.nav-item:hover::before {
  left: 100%;
}

.nav-item:active {
  transform: translateX(6px) scale(0.98);
}

.nav-item.active {
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
  border: 2px solid rgba(254, 202, 87, 0.8);
  transform: translateX(8px) scale(1.08);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.5), 
    0 0 25px rgba(254, 202, 87, 0.4),
    0 0 40px rgba(254, 202, 87, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  position: relative;
  animation: activeGlow 2s ease-in-out infinite;
}

@keyframes activeGlow {
  0%, 100% { 
    box-shadow: 
      0 15px 35px rgba(0, 0, 0, 0.5), 
      0 0 25px rgba(254, 202, 87, 0.4),
      0 0 40px rgba(254, 202, 87, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  50% { 
    box-shadow: 
      0 15px 35px rgba(0, 0, 0, 0.5), 
      0 0 35px rgba(254, 202, 87, 0.6),
      0 0 60px rgba(254, 202, 87, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(45deg, #feca57, #ffd93d);
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(254, 202, 87, 0.8);
  animation: pulseIndicator 2s ease-in-out infinite;
}

@keyframes pulseIndicator {
  0%, 100% { 
    box-shadow: 0 0 15px rgba(254, 202, 87, 0.8);
    opacity: 1;
  }
  50% { 
    box-shadow: 0 0 25px rgba(254, 202, 87, 1);
    opacity: 0.8;
  }
}

.nav-item.active .nav-info h3 {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-item.active .nav-info p {
  color: rgba(255, 255, 255, 0.8);
}

.nav-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  margin-right: 18px;
  position: relative;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.nav-icon i {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.nav-item:hover .nav-icon {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.nav-item:hover .nav-icon i {
  color: rgba(255, 255, 255, 1);
}

.nav-item.active .nav-icon {
  transform: scale(1.3);
  box-shadow: 0 0 35px rgba(254, 202, 87, 0.8);
  animation: pulseGlow 2s ease-in-out infinite;
  border: 2px solid rgba(254, 202, 87, 0.6);
  background: linear-gradient(45deg, rgba(254, 202, 87, 0.3), rgba(255, 217, 61, 0.2)) !important;
}

.nav-item.active .nav-icon i {
  color: rgba(255, 255, 255, 1);
}

@keyframes pulseGlow {
  0%, 100% { 
    box-shadow: 0 0 35px rgba(254, 202, 87, 0.8);
    transform: scale(1.3);
  }
  50% { 
    box-shadow: 0 0 45px rgba(254, 202, 87, 1), 0 0 60px rgba(254, 202, 87, 0.5);
    transform: scale(1.35);
  }
}

.about-icon { background: linear-gradient(45deg, #334155, #475569); }
.skills-icon { background: linear-gradient(45deg, #065f46, #059669); }
.projects-icon { background: linear-gradient(45deg, #075985, #0284c7); }
.education-icon { background: linear-gradient(45deg, #5b21b6, #7c3aed); }
.certificates-icon { background: linear-gradient(45deg, #991b1b, #dc2626); }
.contact-icon { background: linear-gradient(45deg, #92400e, #d97706); }

/* Individual Navigation Button Backgrounds for Visual Partition */
.about-nav {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.25), rgba(71, 85, 105, 0.15)) !important;
  border-color: rgba(51, 65, 85, 0.4);
}

.skills-nav {
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.25), rgba(5, 150, 105, 0.15)) !important;
  border-color: rgba(6, 95, 70, 0.4);
}

.projects-nav {
  background: linear-gradient(135deg, rgba(7, 89, 133, 0.25), rgba(2, 132, 199, 0.15)) !important;
  border-color: rgba(7, 89, 133, 0.4);
}

.education-nav {
  background: linear-gradient(135deg, rgba(91, 33, 182, 0.25), rgba(124, 58, 237, 0.15)) !important;
  border-color: rgba(91, 33, 182, 0.4);
}

.certificates-nav {
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.25), rgba(220, 38, 38, 0.15)) !important;
  border-color: rgba(153, 27, 27, 0.4);
}

.contact-nav {
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.25), rgba(217, 119, 6, 0.15)) !important;
  border-color: rgba(146, 64, 14, 0.4);
}

/* Enhanced Hover Effects for Each Button */
.about-nav:hover {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.4), rgba(71, 85, 105, 0.25)) !important;
  box-shadow: 0 8px 25px rgba(51, 65, 85, 0.4);
}

.skills-nav:hover {
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.4), rgba(5, 150, 105, 0.25)) !important;
  box-shadow: 0 8px 25px rgba(6, 95, 70, 0.4);
}

.projects-nav:hover {
  background: linear-gradient(135deg, rgba(7, 89, 133, 0.4), rgba(2, 132, 199, 0.25)) !important;
  box-shadow: 0 8px 25px rgba(7, 89, 133, 0.4);
}

.education-nav:hover {
  background: linear-gradient(135deg, rgba(91, 33, 182, 0.4), rgba(124, 58, 237, 0.25)) !important;
  box-shadow: 0 8px 25px rgba(91, 33, 182, 0.4);
}

.certificates-nav:hover {
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.4), rgba(220, 38, 38, 0.25)) !important;
  box-shadow: 0 8px 25px rgba(153, 27, 27, 0.4);
}

.contact-nav:hover {
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.4), rgba(217, 119, 6, 0.25)) !important;
  box-shadow: 0 8px 25px rgba(146, 64, 14, 0.4);
}

/* Enhanced Active States with Unique Colors */
.about-nav.active {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.5), rgba(71, 85, 105, 0.35)) !important;
  border-color: rgba(51, 65, 85, 0.8) !important;
  box-shadow: 0 15px 35px rgba(51, 65, 85, 0.5), 0 0 25px rgba(51, 65, 85, 0.4) !important;
}

.skills-nav.active {
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.5), rgba(5, 150, 105, 0.35)) !important;
  border-color: rgba(6, 95, 70, 0.8) !important;
  box-shadow: 0 15px 35px rgba(6, 95, 70, 0.5), 0 0 25px rgba(6, 95, 70, 0.4) !important;
}

.projects-nav.active {
  background: linear-gradient(135deg, rgba(7, 89, 133, 0.5), rgba(2, 132, 199, 0.35)) !important;
  border-color: rgba(7, 89, 133, 0.8) !important;
  box-shadow: 0 15px 35px rgba(7, 89, 133, 0.5), 0 0 25px rgba(7, 89, 133, 0.4) !important;
}

.education-nav.active {
  background: linear-gradient(135deg, rgba(91, 33, 182, 0.5), rgba(124, 58, 237, 0.35)) !important;
  border-color: rgba(91, 33, 182, 0.8) !important;
  box-shadow: 0 15px 35px rgba(91, 33, 182, 0.5), 0 0 25px rgba(91, 33, 182, 0.4) !important;
}

.certificates-nav.active {
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.5), rgba(220, 38, 38, 0.35)) !important;
  border-color: rgba(153, 27, 27, 0.8) !important;
  box-shadow: 0 15px 35px rgba(153, 27, 27, 0.5), 0 0 25px rgba(153, 27, 27, 0.4) !important;
}

.contact-nav.active {
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.5), rgba(217, 119, 6, 0.35)) !important;
  border-color: rgba(146, 64, 14, 0.8) !important;
  box-shadow: 0 15px 35px rgba(146, 64, 14, 0.5), 0 0 25px rgba(146, 64, 14, 0.4) !important;
}

/* Enhanced Active Accent Bars with Matching Colors */
.about-nav.active::before {
  background: linear-gradient(45deg, #334155, #475569) !important;
  box-shadow: 0 0 15px rgba(51, 65, 85, 0.8) !important;
}

.skills-nav.active::before {
  background: linear-gradient(45deg, #065f46, #059669) !important;
  box-shadow: 0 0 15px rgba(6, 95, 70, 0.8) !important;
}

.projects-nav.active::before {
  background: linear-gradient(45deg, #075985, #0284c7) !important;
  box-shadow: 0 0 15px rgba(7, 89, 133, 0.8) !important;
}

.education-nav.active::before {
  background: linear-gradient(45deg, #5b21b6, #7c3aed) !important;
  box-shadow: 0 0 15px rgba(91, 33, 182, 0.8) !important;
}

.certificates-nav.active::before {
  background: linear-gradient(45deg, #991b1b, #dc2626) !important;
  box-shadow: 0 0 15px rgba(153, 27, 27, 0.8) !important;
}

.contact-nav.active::before {
  background: linear-gradient(45deg, #92400e, #d97706) !important;
  box-shadow: 0 0 15px rgba(146, 64, 14, 0.8) !important;
}

.nav-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-info p {
  font-size: 13px;
  opacity: 0.8;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Space Objects */
.space-objects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
}

.space-object {
  position: absolute;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
}

.asteroid-1 {
  top: 15%;
  left: 25%;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 40% 40%, #636e72, #2d3436);
  border-radius: 40% 60% 70% 30%;
  animation: asteroidFloat 8s ease-in-out infinite;
}

.satellite-1 {
  top: 80%;
  left: 60%;
  width: 55px;
  height: 55px;
  background: radial-gradient(circle at 30% 30%, #e67e22, #d35400, #a0522d);
  border-radius: 50%;
  position: relative;
  animation: satelliteOrbit 12s linear infinite;
  box-shadow: 
    0 0 20px rgba(230, 126, 34, 0.4),
    inset -10px -10px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Planet surface details - craters and texture */
.satellite-1::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 15%;
  width: 8px;
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  box-shadow: 
    15px 10px 0 3px rgba(0, 0, 0, 0.2),
    25px 25px 0 2px rgba(0, 0, 0, 0.25),
    8px 35px 0 1px rgba(0, 0, 0, 0.2);
}

/* Planet atmosphere glow */
.satellite-1::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: radial-gradient(circle, transparent 60%, rgba(230, 126, 34, 0.3) 100%);
  border-radius: 50%;
  animation: planetGlow 4s ease-in-out infinite alternate;
}

.nebula-1 {
  top: 25%;
  right: 25%;
  width: 100px;
  height: 70px;
  background: radial-gradient(ellipse, rgba(147, 112, 219, 0.6), rgba(106, 90, 205, 0.3), transparent);
  border-radius: 50%;
  animation: nebulaGlow 6s ease-in-out infinite alternate;
  filter: blur(1px);
}

.space-object:hover {
  transform: scale(1.2);
  z-index: 100;
}

.object-tooltip {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Animated Stars */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Test Stars - Simple and Direct */
.test-star {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  transition: none;
}

/* Interactive Stars */
.interactive-star {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

.interactive-star.star-small {
  animation: starTwinkleSubtle 3s ease-in-out infinite;
}

.interactive-star.star-medium {
  animation: starTwinkleSubtle 2.5s ease-in-out infinite reverse;
}

.interactive-star.star-large {
  animation: starTwinkleSubtle 4s ease-in-out infinite;
  position: relative;
}

.interactive-star.star-large::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.interactive-star.star-large:hover::after {
  opacity: 1;
}

@keyframes starTwinkleSubtle {
  0%, 100% { 
    opacity: var(--base-opacity, 0.3);
    transform: scale(1);
  }
  50% { 
    opacity: calc(var(--base-opacity, 0.3) * 1.5);
    transform: scale(1.1);
  }
}

/* Old static stars styles - kept as fallback */
.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  opacity: 0.6; /* Made visible for better background effect */
}

.stars-small {
  background-image: 
    radial-gradient(2px 2px at 20px 30px, white, transparent),
    radial-gradient(2px 2px at 40px 70px, white, transparent),
    radial-gradient(1px 1px at 90px 40px, white, transparent),
    radial-gradient(1px 1px at 130px 80px, white, transparent),
    radial-gradient(2px 2px at 160px 30px, white, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: starsTwinkle 3s linear infinite;
}

.stars-medium {
  background-image: 
    radial-gradient(3px 3px at 30px 40px, white, transparent),
    radial-gradient(3px 3px at 80px 20px, white, transparent),
    radial-gradient(2px 2px at 110px 90px, white, transparent);
  background-repeat: repeat;
  background-size: 300px 150px;
  animation: starsTwinkle 2s linear infinite reverse;
}

.stars-large {
  background-image: 
    radial-gradient(4px 4px at 50px 60px, white, transparent),
    radial-gradient(4px 4px at 120px 30px, white, transparent);
  background-repeat: repeat;
  background-size: 400px 200px;
  animation: starsTwinkle 4s linear infinite;
}

@keyframes asteroidFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

@keyframes satelliteOrbit {
  0% { transform: rotate(0deg) translateX(50px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(50px) rotate(-360deg); }
}

@keyframes planetGlow {
  0% { 
    opacity: 0.6;
    transform: scale(1);
  }
  100% { 
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes nebulaGlow {
  0% { 
    filter: blur(1px) brightness(1);
    transform: scale(1);
  }
  100% { 
    filter: blur(2px) brightness(1.3);
    transform: scale(1.1);
  }
}

@keyframes starsTwinkle {
  0% { opacity: 0.1; }
  50% { opacity: 0.3; }
  100% { opacity: 0.1; }
}

/* Main Content Area - Single Page Layout */
.main-content {
  position: fixed;
  top: 0;
  right: 0;
  width: calc(100vw - 320px);
  height: 100vh;
  overflow-y: auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 20px 0 0 20px;
  z-index: 50;
  scroll-behavior: smooth;
}

.main-content::-webkit-scrollbar {
  width: 6px;
}

.main-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.main-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.main-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.content-section {
  min-height: 100vh;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: none;
}

.content-section:last-child {
  border-bottom: none;
}

/* Section-specific backgrounds matching navigation buttons */
.about-section {
  background: transparent;
}

.skills-section {
  background: transparent;
}

.projects-section {
  background: transparent;
}

.education-section {
  background: transparent;
}

.certificates-section {
  background: transparent;
}

.contact-section {
  background: transparent;
}

/* Section-specific heading colors */
.about-section h1, .about-section h1 i {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.skills-section h1, .skills-section h1 i {
  color: #10b981 !important;
  text-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.projects-section h1, .projects-section h1 i {
  color: #0ea5e9 !important;
  text-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}

.education-section h1, .education-section h1 i {
  color: #8b5cf6 !important;
  text-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.certificates-section h1, .certificates-section h1 i {
  color: #ef4444 !important;
  text-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.contact-section h1, .contact-section h1 i {
  color: #f59e0b !important;
  text-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Section-specific text colors - all white except main headings */
.about-section h2, .about-section h3,
.skills-section h2, .skills-section h3,
.projects-section h2, .projects-section h3,
.education-section h2, .education-section h3,
.certificates-section h2, .certificates-section h3,
.contact-section h2, .contact-section h3 {
  color: #ffffff !important;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Enhanced text visibility */
.content-section p {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 15px;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.content-section p:hover {
  color: #ffffff;
  transform: translateX(3px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.content-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 25px 0 15px 0;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
}

.content-section h2:hover {
  transform: translateX(5px);
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
}

.content-section h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 20px 0 10px 0;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.content-section h3:hover {
  transform: translateX(3px);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Enhanced section transitions */
.content-section {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.content-section .section-content {
  position: relative;
  z-index: 2;
}

.section-content {
  max-width: 1000px;
  width: 100%;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  /* Content Box Styling */
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(25px);
  border-radius: 30px;
  padding: 50px 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.section-content:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(255, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Section-specific hover effects removed - keeping neutral */

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

/* Section-specific animations with delays */
.about-section .section-content {
  animation-delay: 0.2s;
}

.skills-section .section-content {
  animation-delay: 0.4s;
}

.projects-section .section-content {
  animation-delay: 0.6s;
}

.education-section .section-content {
  animation-delay: 0.8s;
}

.certificates-section .section-content {
  animation-delay: 1s;
}

.contact-section .section-content {
  animation-delay: 1.2s;
}

/* Section-specific content box themes */
.about-section .section-content {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.skills-section .section-content {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.projects-section .section-content {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.education-section .section-content {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.certificates-section .section-content {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-section .section-content {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Style the content similar to panel content */
.content-section h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
}

.content-section h1:hover {
  transform: translateX(10px) scale(1.02);
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.content-section h1 i {
  color: #ff6b6b;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.content-section h1:hover i {
  transform: scale(1.2) rotate(10deg);
  color: #ff8a8a;
}

.content-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 25px 0 15px 0;
  color: rgba(255, 255, 255, 0.95);
}

.content-section p {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
  font-weight: 400;
}

/* Responsive Design for Main Content */
@media (max-width: 1200px) {
  .main-content {
    width: calc(100vw - 280px);
  }
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
  /* Mobile Body Adjustments */
  body {
    overflow-x: hidden !important;
    position: relative !important;
    min-height: 100vh !important;
    padding-bottom: calc(100px + env(safe-area-inset-bottom)) !important; /* Increased space for nav */
    width: 100vw !important;
    max-width: 100vw !important;
  }
  
  /* Prevent horizontal scroll on any element */
  * {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  
  /* Enhanced Mobile Navigation */
  .main-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    transform: none !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    flex-direction: row !important;
    justify-content: space-evenly !important; /* Better distribution */
    align-items: center !important;
    padding: 12px 8px !important; /* Improved padding */
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid rgba(0, 255, 65, 0.3) !important;
    border-image: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.6), transparent) 1 !important;
    z-index: 9999 !important;
    width: 100vw !important;
    height: calc(90px + env(safe-area-inset-bottom)) !important; /* Increased height */
    box-sizing: border-box !important;
    box-shadow: 
      0 -8px 32px rgba(0, 0, 0, 0.6),
      0 -2px 8px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    margin: 0 !important;
    gap: 4px !important; /* Slightly increased gap */
  }
  
  /* Enhanced Mobile Navigation Items */
  .nav-item {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 8px 4px !important; /* Better padding */
    font-size: 11px !important;
    text-align: center !important;
    min-width: 0 !important;
    flex: 1 !important;
    width: auto !important;
    border-radius: 16px !important; /* Larger radius */
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    transform: none !important;
    max-width: calc(100vw / 6 - 6px) !important; /* Better spacing */
    min-height: 70px !important; /* Increased height */
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    overflow: hidden !important;
    margin: 0 2px !important; /* Better margin for spacing */
    touch-action: manipulation !important; /* Better touch performance */
    user-select: none !important; /* Prevent text selection */
    -webkit-user-select: none !important;
    -webkit-tap-highlight-color: transparent !important; /* Remove tap highlight */
  }
  
  /* Enhanced Ripple Effect */
  .nav-item::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%) !important;
    transform: translate(-50%, -50%) !important;
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  .nav-item:active::before {
    width: 100px !important;
    height: 100px !important;
    opacity: 1 !important;
    transition: all 0.2s ease-out !important;
  }
  
  /* Enhanced Hover State */
  .nav-item:hover {
    transform: translateY(-2px) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 
      0 4px 12px rgba(0, 0, 0, 0.3),
      0 0 20px rgba(255, 255, 255, 0.1) !important;
  }
  
  /* Enhanced Active State with Animation */
  .nav-item.active {
    background: linear-gradient(135deg, rgba(254, 202, 87, 0.25) 0%, rgba(255, 217, 61, 0.15) 100%) !important;
    border: 1px solid rgba(254, 202, 87, 0.7) !important;
    transform: translateY(-3px) !important;
    box-shadow: 
      0 6px 20px rgba(254, 202, 87, 0.3),
      0 2px 8px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    animation: navPulse 2s ease-in-out infinite !important;
    color: rgba(255, 255, 255, 1) !important;
  }
  
  @keyframes navPulse {
    0%, 100% { 
      box-shadow: 
        0 6px 20px rgba(254, 202, 87, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
      box-shadow: 
        0 8px 25px rgba(254, 202, 87, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
  }
  
  /* Enhanced Mobile Navigation Icon */
  .nav-icon {
    width: 28px !important; /* Increased size */
    height: 28px !important;
    margin-right: 0 !important;
    margin-bottom: 5px !important; /* Increased margin */
    transform: none !important;
    animation: none !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 
      0 2px 8px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important; /* Increased icon size */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
  }
  
  .nav-icon::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
    transform: rotate(-45deg) translateX(-100%) !important;
    transition: transform 0.6s ease !important;
  }
  
  .nav-item:hover .nav-icon::before {
    transform: rotate(-45deg) translateX(100%) !important;
  }
  
  .nav-icon i {
    font-size: 14px !important; /* Match icon container */
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease !important;
    z-index: 1 !important;
    position: relative !important;
  }
  
  .nav-item:hover .nav-icon {
    transform: translateY(-1px) scale(1.05) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 
      0 4px 12px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  }
  
  .nav-item:hover .nav-icon i {
    color: rgba(255, 255, 255, 0.95) !important;
    transform: scale(1.1) !important;
  }
  
  .nav-item.active .nav-icon {
    transform: translateY(-1px) scale(1.1) !important;
    animation: iconPulse 2s ease-in-out infinite !important;
    border: 1px solid rgba(254, 202, 87, 0.8) !important;
    box-shadow: 
      0 4px 16px rgba(254, 202, 87, 0.4),
      0 0 20px rgba(254, 202, 87, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    background: linear-gradient(135deg, rgba(254, 202, 87, 0.3) 0%, rgba(255, 217, 61, 0.2) 100%) !important;
  }
  
  .nav-item.active .nav-icon i {
    color: rgba(255, 255, 255, 1) !important;
    text-shadow: 0 0 8px rgba(254, 202, 87, 0.6) !important;
  }
  
  @keyframes iconPulse {
    0%, 100% { 
      box-shadow: 
        0 4px 16px rgba(254, 202, 87, 0.4),
        0 0 20px rgba(254, 202, 87, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
      box-shadow: 
        0 6px 20px rgba(254, 202, 87, 0.5),
        0 0 30px rgba(254, 202, 87, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
  }
  
  /* Enhanced Mobile Navigation Text */
  .nav-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
  }
  
  .nav-info h3 {
    font-size: 12px !important; /* Increased font size */
    margin: 0 !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: inherit !important;
    width: 100% !important;
    text-align: center !important;
    text-shadow: none !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.5px !important;
  }
  
  .nav-item:hover .nav-info h3 {
    transform: translateY(-1px) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
  }
  
  .nav-item.active .nav-info h3 {
    color: rgba(255, 255, 255, 1) !important;
    text-shadow: 
      0 0 8px rgba(254, 202, 87, 0.6),
      0 1px 3px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-1px) !important;
    animation: textGlow 2s ease-in-out infinite !important;
  }
  
  @keyframes textGlow {
    0%, 100% { 
      text-shadow: 
        0 0 8px rgba(254, 202, 87, 0.6),
        0 1px 3px rgba(0, 0, 0, 0.3);
    }
    50% { 
      text-shadow: 
        0 0 12px rgba(254, 202, 87, 0.8),
        0 1px 3px rgba(0, 0, 0, 0.4);
    }
  }
  
  .nav-info p {
    display: none !important; /* Hide descriptions on mobile */
  }
  
  .nav-data-stream,
  .nav-hologram,
  .nav-grid-lines,
  .nav-scanner {
    display: none !important; /* Hide decorative elements on mobile */
  }
  
  /* Enhanced Navigation Indicator for Mobile */
  .nav-indicator {
    position: absolute !important;
    top: -2px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 20px !important;
    height: 3px !important;
    background: transparent !important;
    border-radius: 2px !important;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    opacity: 0 !important;
  }
  
  .nav-item.active .nav-indicator {
    background: linear-gradient(90deg, rgba(254, 202, 87, 0.8) 0%, rgba(255, 217, 61, 1) 50%, rgba(254, 202, 87, 0.8) 100%) !important;
    opacity: 1 !important;
    animation: indicatorPulse 2s ease-in-out infinite !important;
    box-shadow: 
      0 0 8px rgba(254, 202, 87, 0.6),
      0 1px 3px rgba(0, 0, 0, 0.3) !important;
  }
  
  @keyframes indicatorPulse {
    0%, 100% { 
      opacity: 1;
      transform: translateX(-50%) scaleX(1);
    }
    50% { 
      opacity: 0.8;
      transform: translateX(-50%) scaleX(1.2);
    }
  }
  
  /* Enhanced Mobile Main Content */
  .main-content {
    position: relative !important;
    width: 100vw !important;
    top: 0 !important;
    right: auto !important;
    height: calc(100vh - 90px - env(safe-area-inset-bottom)) !important; /* Account for increased nav height */
    margin-top: 0 !important;
    padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important; /* Extra space for nav */
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    scroll-behavior: smooth !important;
    max-width: 100vw !important;
  }
  
  /* Mobile Content Sections */
  .content-section {
    padding: 30px 20px; /* Increased padding */
    min-height: calc(100vh - 160px);
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .section-content {
    padding: 30px 25px; /* Increased padding */
    border-radius: 15px; /* Increased radius */
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(0, 255, 65, 0.2);
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  
  /* Mobile Typography */
  .content-section h1 {
    font-size: 26px; /* Increased font size */
    margin-bottom: 20px;
    line-height: 1.3;
  }
  
  .content-section h2 {
    font-size: 22px; /* Increased font size */
    margin: 20px 0 15px 0;
    line-height: 1.3;
  }
  
  .content-section h3 {
    font-size: 20px; /* Increased font size */
    margin: 18px 0 12px 0;
    line-height: 1.3;
  }
  
  .content-section p {
    font-size: 16px; /* Increased font size */
    line-height: 1.7;
    margin-bottom: 15px;
  }
  
  /* Mobile Stars */
  .stars-container {
    pointer-events: none; /* Disable star interaction on mobile for performance */
  }
  
  /* Mobile Profile Section */
  .profile-wrapper {
    margin: 25px 0;
  }
  
  .profile-section {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 25px 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .profile-image {
    order: 1;
  }
  
  .profile-image img {
    width: 120px;
    height: 120px;
    border: 4px solid #e74c3c;
  }
  
  .profile-info {
    order: 2;
  }
  
  .profile-info h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .profile-info h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .profile-actions {
    position: static;
    order: 1;
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .resume-link {
    padding: 12px 24px;
    font-size: 15px;
    gap: 8px;
    border-radius: 25px;
  }
  
  .resume-link i {
    font-size: 15px;
  }
}

/* Enhanced Small Mobile Devices */
@media (max-width: 480px) {
  /* Extra small mobile adjustments */
  body {
    padding-bottom: calc(105px + env(safe-area-inset-bottom)) !important; /* Increased bottom padding */
  }
  
  .logo {
    top: 15px;
    left: 15px;
    font-size: 16px;
    letter-spacing: 0.5px;
    z-index: 1001;
  }
  
  .logo span {
    font-size: 8px;
    letter-spacing: 3px;
  }
  
  /* Enhanced Small Mobile Navigation */
  .main-nav {
    height: calc(85px + env(safe-area-inset-bottom)) !important; /* Increased height */
    padding: 8px 4px !important;
    padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    position: fixed !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    gap: 2px !important;
  }
  
  .nav-item {
    padding: 6px 3px !important;
    font-size: 10px !important; /* Increased font size */
    max-width: calc(100vw / 6 - 3px) !important;
    min-height: 65px !important; /* Increased height */
    border-radius: 14px !important;
    margin: 0 1px !important;
  }
  
  .nav-icon {
    width: 26px !important;
    height: 26px !important;
    margin-bottom: 4px !important;
    font-size: 13px !important;
  }
  
  .nav-icon i {
    font-size: 13px !important;
  }
  
  .nav-info h3 {
    font-size: 10px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
  }
  
  /* Enhanced Mobile Main Content */
  .main-content {
    height: calc(100vh - 85px - env(safe-area-inset-bottom)) !important;
    padding-bottom: calc(105px + env(safe-area-inset-bottom)) !important; /* Increased padding */
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  .content-section {
    padding: 25px 15px; /* Increased padding */
    min-height: calc(100vh - 160px);
  }
  
  .section-content {
    padding: 25px 20px; /* Increased padding */
    border-radius: 12px;
  }
  
  .content-section h1 {
    font-size: 24px; /* Increased font size */
    margin-bottom: 18px;
  }
  
  .content-section h2 {
    font-size: 20px; /* Increased font size */
    margin: 18px 0 12px 0;
  }
  
  .content-section h3 {
    font-size: 18px; /* Increased font size */
    margin: 15px 0 10px 0;
  }
  
  .content-section p {
    font-size: 15px; /* Increased font size */
    line-height: 1.6;
    margin-bottom: 12px;
  }
  
  /* Mobile Skills Section */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .skill-item {
    padding: 15px 12px;
    margin-bottom: 8px;
  }
  
  .skill-tags {
    gap: 6px;
  }
  
  .skill-tag {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  /* Mobile Projects Section - Swipe Carousel */
  .projects-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 15px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .projects-grid::-webkit-scrollbar {
    display: none;
  }
  
  .project-item {
    flex: 0 0 280px;
    padding: 20px 15px;
    scroll-snap-align: center;
    position: relative;
  }
  
  .project-image {
    height: 160px;
  }
  
  /* Mobile Education Section - Swipe Carousel */
  .timeline {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 15px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .timeline::-webkit-scrollbar {
    display: none;
  }
  
  .timeline::before {
    display: none; /* Hide vertical timeline line on mobile */
  }
  
  .timeline-item {
    flex: 0 0 280px;
    scroll-snap-align: center;
    margin-bottom: 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #ff6b6b;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .timeline-item::before {
    display: none; /* Hide timeline dots on mobile */
  }
  
  .timeline-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-left-color: #ff8a8a;
    border-left-width: 6px;
  }
  
  /* Mobile Certificates Section - Swipe Carousel */
  .certifications {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 15px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .certifications::-webkit-scrollbar {
    display: none;
  }
  
  .cert-item {
    flex: 0 0 280px;
    scroll-snap-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #dc2626;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .cert-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-left-color: #ef4444;
    border-left-width: 6px;
  }
  
  /* Swipe Indicators - Mobile Only */
  .swipe-indicators {
    display: flex !important;
    justify-content: center;
    gap: 10px;
    margin: 25px 0 15px 0;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  
  .swipe-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
  }
  
  .swipe-dot.active {
    background: #feca57;
    box-shadow: 0 0 15px rgba(254, 202, 87, 0.8);
    transform: scale(1.3);
    border-color: #feca57;
  }
  
  .swipe-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
  }

  /* Mobile Contact Section */
  .contact-form {
    padding: 20px 15px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 12px;
    font-size: 14px;
  }
  
  .submit-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  /* Mobile Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .stat-item {
    padding: 15px 10px;
  }
  
  .stat-number {
    font-size: 20px;
  }
  
  .stat-label {
    font-size: 11px;
  }
  
  /* Extra Small Mobile Profile Section */
  .profile-wrapper {
    margin: 20px 0;
  }
  
  .profile-section {
    padding: 20px 15px;
    margin-bottom: 12px;
    gap: 15px;
  }
  
  .profile-image img {
    width: 100px;
    height: 100px;
    border: 3px solid #e74c3c;
  }
  
  .profile-info h2 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .profile-info h3 {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .resume-link {
    padding: 10px 20px;
    font-size: 13px;
    gap: 6px;
    border-radius: 20px;
  }
  
  .resume-link i {
    font-size: 13px;
  }
}

/* Extra Small Mobile Devices (360px and below) */
@media (max-width: 360px) {
  body {
    padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important;
  }
  
  .logo {
    top: 12px;
    left: 12px;
    font-size: 14px;
    letter-spacing: 0.3px;
  }
  
  .logo span {
    font-size: 7px;
    letter-spacing: 2px;
  }
  
  .main-nav {
    height: calc(90px + env(safe-area-inset-bottom)) !important;
    padding: 10px 3px !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    gap: 1px !important;
  }
  
  .nav-item {
    padding: 5px 2px !important;
    font-size: 9px !important;
    max-width: calc(100vw / 6 - 2px) !important;
    min-height: 70px !important;
    border-radius: 12px !important;
  }
  
  .nav-icon {
    width: 24px !important;
    height: 24px !important;
    margin-bottom: 3px !important;
    font-size: 12px !important;
  }
  
  .nav-icon i {
    font-size: 12px !important;
  }
  
  .nav-info h3 {
    font-size: 9px !important;
    letter-spacing: 0.2px !important;
  }
  
  .main-content {
    height: calc(100vh - 90px - env(safe-area-inset-bottom)) !important;
    padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important;
  }
  
  .content-section {
    padding: 20px 10px;
  }
  
  .section-content {
    padding: 20px 15px;
    border-radius: 10px;
  }
  
  .content-section h1 {
    font-size: 22px;
    margin-bottom: 15px;
  }
  
  .content-section h2 {
    font-size: 18px;
    margin: 15px 0 10px 0;
  }
  
  .content-section h3 {
    font-size: 16px;
    margin: 12px 0 8px 0;
  }
  
  .content-section p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  
  .profile-image img {
    width: 90px;
    height: 90px;
    border: 2px solid #e74c3c;
  }
  
  .profile-info h2 {
    font-size: 16px;
    margin-bottom: 6px;
  }
  
  .profile-info h3 {
    font-size: 13px;
    margin-bottom: 10px;
  }
  
  .resume-link {
    padding: 8px 16px;
    font-size: 12px;
    gap: 4px;
    border-radius: 18px;
  }
  
  .resume-link i {
    font-size: 12px;
  }
}

/* Hide swipe indicators on desktop */
@media (min-width: 769px) {
  .swipe-indicators {
    display: none !important;
  }
}

/* Improve mobile scrolling and prevent zoom on focus */
@media (max-width: 768px) {
  input, textarea, select {
    font-size: 16px !important; /* Prevent zoom on iOS */
    transform: translateZ(0); /* Hardware acceleration */
  }
  
  /* Improve touch targets */
  button, .nav-item, .project-item, .skill-item {
    min-height: 44px !important; /* Apple recommended touch target size */
    min-width: 44px !important;
  }
  
  /* Smooth scrolling for mobile */
  .main-content {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Prevent horizontal overflow on any element */
  * {
    max-width: 100vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Improve performance */
  .nav-item, .section-content, .profile-image {
    will-change: transform;
    transform: translateZ(0);
  }
}

/* Mobile Landscape Orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .main-nav {
    height: calc(75px + env(safe-area-inset-bottom)) !important; /* Shorter nav for landscape */
    padding: 8px 6px !important;
  }
  
  .nav-item {
    min-height: 60px !important; /* Shorter items for landscape */
    padding: 6px 3px !important;
  }
  
  .nav-icon {
    width: 24px !important;
    height: 24px !important;
    margin-bottom: 3px !important;
    font-size: 12px !important;
  }
  
  .nav-icon i {
    font-size: 12px !important;
  }
  
  .nav-info h3 {
    font-size: 10px !important;
  }
  
  .main-content {
    height: calc(100vh - 75px - env(safe-area-inset-bottom)) !important;
    padding-bottom: calc(85px + env(safe-area-inset-bottom)) !important;
  }
  
  .content-section {
    padding: 20px 15px;
  }
  
  .section-content {
    padding: 20px 15px;
  }
}

/* Panels with enhanced animations */
.panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(69, 183, 209, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
  backdrop-filter: blur(20px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 200;
  will-change: transform, opacity;
}

/* Enhanced slide directions for each panel */
.about-panel {
  transform: translateY(100vh) scale(0.95);
}

.skills-panel {
  transform: translateX(-100vw) scale(0.95);
}

.projects-panel {
  transform: translateX(100vw) scale(0.95);
}

.experience-panel {
  transform: translateY(-100vh) scale(0.95);
}

.contact-panel {
  transform: translateY(100vh) scale(0.95);
}

/* Enhanced active state with smooth scaling */
.panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) translateY(0) scale(1);
}

.panel::-webkit-scrollbar {
  width: 6px;
}

.panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.close-btn {
  position: fixed;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 300;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ff6b6b;
}

.panel-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.panel h1 i {
  color: #ff6b6b;
}

.panel h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 30px 0 15px 0;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.panel p {
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 20px;
}

/* Enhanced Hover Effects for All Elements */

/* Profile Wrapper - Container for profile section and resume button */
.profile-wrapper {
  margin: 30px 0;
}

/* Profile Section Hover */
.profile-section {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
}

.profile-section:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.profile-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #e74c3c;
  box-shadow: 0 0 30px rgba(231, 76, 60, 0.5), 0 0 60px rgba(231, 76, 60, 0.2);
  transition: all 0.3s ease;
}

.profile-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(231, 76, 60, 0.7), 0 0 80px rgba(231, 76, 60, 0.3);
}

.profile-info {
  flex: 1;
}

.profile-info h2 {
  margin: 0 0 8px 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.profile-info h3 {
  margin: 0 0 15px 0;
  color: #feca57;
  font-weight: 400;
  font-size: 14px;
  min-height: 1.2em;
  line-height: 1.2;
}

/* Profile Actions */
.profile-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 20px;
  width: auto;
}

.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  border: 1px solid rgba(231, 76, 60, 0.3);
  backdrop-filter: blur(15px);
}

.resume-link:hover {
  background: rgba(231, 76, 60, 0.25);
  border-color: #e74c3c;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
}

.resume-link i {
  font-size: 15px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.stat-item {
  text-align: center;
  padding: 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.stat-item h3 {
  font-size: 28px;
  color: #ff6b6b;
  margin-bottom: 8px;
  font-weight: 600;
}

.stat-item p {
  font-size: 12px;
  opacity: 0.7;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Education */
.education-list {
  margin: 20px 0;
}

.education-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border-left: 4px solid #ff6b6b;
  margin-bottom: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
}

.education-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(8px) translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
  border-left-width: 6px;
  border-left-color: #ff8a8a;
}

.education-item h3 {
  color: #ffffff;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.education-item p {
  margin: 5px 0;
  opacity: 0.8;
  font-size: 14px;
}

.education-item span {
  color: #feca57;
  font-size: 12px;
  font-weight: 500;
}

/* Skills */
.skills-category {
  margin: 40px 0;
}

.tools-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  margin: 50px 0;
}

.tools-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}

.tools-section h2 i {
  margin-right: 10px;
  color: #feca57;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.skill-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(78, 205, 196, 0.4);
}

.skill-item:hover .skill-icon {
  transform: scale(1.2) rotate(10deg);
  color: #5ce1e6;
}

.skill-icon {
  font-size: 32px;
  color: #4ecdc4;
  margin-bottom: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.skill-item h3 {
  margin: 10px 0;
  font-size: 14px;
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #4ecdc4, #44a08d);
  border-radius: 3px;
  width: 0%;
  transition: width 1.5s ease;
}

/* Animation-ready states for scroll-triggered animations */
.skill-tag {
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  /* Animation starting state */
  opacity: 0;
  transform: translateY(20px);
}

.skill-tag::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: left 0.5s ease;
}

.skill-tag:hover::before {
  left: 100%;
}

.skill-tag:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 25px 0;
  justify-content: center;
  align-items: center;
}

.stat-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: all 0.3s ease;
  /* Animation starting state */
  opacity: 0;
  transform: scale(0.8);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Swipe Indicators - Hidden by default (desktop) */
.swipe-indicators {
  display: none;
}

/* Projects */
.projects-section .section-content {
  max-width: 1200px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.project-item {
  margin: 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.project-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-image {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.project-icon {
  font-size: 32px;
  color: #45b7d1;
}

.project-header h2 {
  margin: 0 0 5px 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 10px;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  animation: pinnedGlow 2s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
}

.pinned-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: pinnedShine 3s ease-in-out infinite;
}

@keyframes pinnedGlow {
  0% {
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3), 0 0 15px rgba(255, 107, 107, 0.1);
  }
  100% {
    box-shadow: 0 2px 12px rgba(255, 107, 107, 0.5), 0 0 25px rgba(255, 107, 107, 0.2);
  }
}

@keyframes pinnedShine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.project-header p {
  margin: 0;
  opacity: 0.7;
  font-size: 14px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.project-tech span {
  padding: 6px 12px;
  background: rgba(69, 183, 209, 0.2);
  border: 1px solid #45b7d1;
  border-radius: 15px;
  font-size: 11px;
  color: #45b7d1;
}

.project-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #feca57;
  text-decoration: none;
  font-size: 13px;
  padding: 8px 15px;
  border: 1px solid #feca57;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: #feca57;
  color: #0c0c0c;
}

/* Timeline */
.timeline {
  position: relative;
  margin: 40px 0;
  padding: 20px 0;
}

.timeline-item:first-child {
  margin-top: 40px;
}

.timeline-item:last-child {
  margin-bottom: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 150px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #96ceb4, #85c1a3);
}

.timeline-item {
  position: relative;
  margin: 80px 0;
  padding-left: 200px;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
  min-height: 140px;
  display: block;
}

.timeline-item:hover {
  transform: translateX(10px);
}

.timeline-item:hover .timeline-content {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.timeline-item:hover .timeline-date {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
  background: rgba(139, 92, 246, 0.4);
  border-color: rgba(139, 92, 246, 0.8);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 144px;
  top: 50px;
  transform: none;
  width: 12px;
  height: 12px;
  background: #96ceb4;
  border-radius: 50%;
  border: 3px solid #0c0c0c;
}

.timeline-date {
  position: absolute;
  left: 0;
  top: 45px;
  display: inline-block;
  margin-bottom: 15px;
  font-size: 12px;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  background: rgba(139, 92, 246, 0.3);
  padding: 10px 16px;
  border-radius: 18px;
  border: 2px solid rgba(139, 92, 246, 0.6);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  transition: all 0.3s ease;
  white-space: nowrap;
  width: 120px;
  backdrop-filter: blur(10px);
}

.timeline-content {
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  flex: 1;
}

.timeline-content h2 {
  color: #ffffff;
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.timeline-content h3 {
  color: #ffffff;
  margin: 0 0 15px 0;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.timeline-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.timeline-content li {
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Education Images with Hover Effects */
.education-header {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 20px;
  position: relative;
}

.education-image {
  width: 300px;
  height: 300px;
  border-radius: 30px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  margin: -20px;
  backdrop-filter: blur(5px);
  flex-shrink: 0;
}

.education-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(69, 183, 209, 0.1), rgba(150, 206, 180, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  border-radius: 30px;
}

.education-img {
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  object-fit: cover;
  object-position: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0.85;
  border-radius: 25px;
  margin: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.education-header:hover .education-image {
  transform: scale(1.1) translateY(-10px) translateX(-5px) rotate(2deg);
  border-color: #45b7d1;
  box-shadow: 0 15px 30px rgba(69, 183, 209, 0.4), 0 0 25px rgba(69, 183, 209, 0.2);
  z-index: 20;
  overflow: visible;
  width: 330px;
  height: 330px;
  border-radius: 35px;
}

.education-header:hover .education-image::before {
  opacity: 1;
}

.education-header:hover .education-img {
  opacity: 1;
  object-fit: contain;
  border-radius: 28px;
  margin: 22px;
  width: calc(100% - 44px);
  height: calc(100% - 44px);
}

.education-text {
  flex: 1;
  padding-left: 20px;
}

.education-text h2 {
  color: #ffffff;
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.education-text h3 {
  color: #ffffff;
  margin: 0 0 15px 0;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.institution-link {
  color: #feca57;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.institution-link:hover {
  color: #ffd93d;
  border-bottom-color: #feca57;
  text-shadow: 0 2px 8px rgba(254, 202, 87, 0.3);
  transform: translateY(-1px);
}

.education-text p {
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0;
  opacity: 0.9;
}

.education-text ul {
  margin: 15px 0;
  padding-left: 20px;
}

.education-text li {
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0;
  opacity: 0.8;
}

/* Mobile responsiveness for education images */
@media (max-width: 768px) {
  .education-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .education-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px auto;
  }
  
  .education-header:hover .education-image {
    transform: scale(1.05) translateY(-5px);
    width: 210px;
    height: 210px;
  }
  
  .education-text {
    padding-left: 0;
  }
}

/* Certifications */
.certifications {
  margin: 40px 0;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 15px 0;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
}

.cert-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(150, 206, 180, 0.3);
}

.cert-item:hover i {
  transform: scale(1.2) rotate(10deg);
  color: #b0e0cc;
}

.cert-item i {
  font-size: 32px;
  color: #96ceb4;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.cert-item h3 {
  margin: 0 0 5px 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.cert-item p {
  margin: 0 0 10px 0;
  opacity: 0.7;
  font-size: 13px;
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #96ceb4;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid #96ceb4;
  border-radius: 15px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.cert-link:hover {
  background: #96ceb4;
  color: #0c0c0c;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(150, 206, 180, 0.3);
}

.cert-link::after {
  content: '↗';
  font-size: 10px;
  transition: transform 0.3s ease;
}

.cert-link:hover::after {
  transform: translate(2px, -2px);
}

/* Contact */
.contact-intro {
  padding: 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 30px 0;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
}

.contact-intro:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-methods {
  margin: 40px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 15px 0;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(254, 202, 87, 0.3);
}

.contact-item:hover i {
  transform: scale(1.2) rotate(10deg);
  color: #ffd93d;
}

.contact-item i {
  font-size: 24px;
  color: #feca57;
  width: 40px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.contact-item h3 {
  margin: 0 0 5px 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.contact-item p {
  margin: 5px 0;
  font-size: 14px;
  opacity: 0.8;
}

.contact-item a {
  color: #feca57;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item span {
  font-size: 12px;
  opacity: 0.6;
}

/* Social Links */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  color: #ffffff;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  min-height: 120px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.social-link:hover img,
.social-link:hover i {
  transform: scale(1.3) rotate(10deg);
}

.social-link img {
  width: 40px;
  height: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  filter: brightness(1.2) contrast(1.1) saturate(1.2);
  opacity: 0.9;
}

.social-link:hover img {
  filter: brightness(1.4) contrast(1.2) saturate(1.4);
  opacity: 1;
}

/* Brand-specific hover colors */
/* LinkedIn */
.social-link:nth-child(1):hover {
  background: rgba(0, 119, 181, 0.15);
  border-color: rgba(0, 119, 181, 0.4);
  box-shadow: 0 15px 30px rgba(0, 119, 181, 0.3);
}

/* GitHub */
.social-link:nth-child(2):hover {
  background: rgba(240, 246, 252, 0.15);
  border-color: rgba(240, 246, 252, 0.4);
  box-shadow: 0 15px 30px rgba(240, 246, 252, 0.2);
}

/* Instagram */
.social-link:nth-child(3):hover {
  background: rgba(225, 48, 108, 0.15);
  border-color: rgba(225, 48, 108, 0.4);
  box-shadow: 0 15px 30px rgba(225, 48, 108, 0.3);
}

/* Enhanced social icon animations with platform-specific variations */

/* LinkedIn - Professional bounce */
.social-link:nth-child(1):hover i {
  animation: socialIconPulse 0.6s ease-in-out, professionalBounce 0.8s ease-in-out;
  animation-delay: 0s;
}

/* GitHub - Code-like rotation */
.social-link:nth-child(2):hover i {
  animation: socialIconPulse 0.6s ease-in-out, codeRotate 0.7s ease-in-out;
  animation-delay: 0.1s;
}

/* LeetCode - Problem-solving wiggle */
.social-link:nth-child(3):hover i {
  animation: socialIconPulse 0.6s ease-in-out, problemWiggle 0.8s ease-in-out;
  animation-delay: 0.2s;
}

/* Instagram - Creative spin */
.social-link:nth-child(4):hover i {
  animation: socialIconPulse 0.6s ease-in-out, creativeSpin 0.9s ease-in-out;
  animation-delay: 0.1s;
}

/* Discord - Communication bounce */
.social-link:nth-child(6):hover i {
  animation: socialIconPulse 0.6s ease-in-out, communicationBounce 0.7s ease-in-out;
  animation-delay: 0.1s;
}

/* WhatsApp - Message pop */
.social-link:nth-child(7):hover i {
  animation: socialIconPulse 0.6s ease-in-out, messagePop 0.6s ease-in-out;
  animation-delay: 0.2s;
}

/* Resume - Document flip */
.social-link:nth-child(8):hover i {
  animation: socialIconPulse 0.6s ease-in-out, documentFlip 0.8s ease-in-out;
  animation-delay: 0.1s;
}

/* Twitter/X */
.social-link:nth-child(5):hover {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Discord */
.social-link:nth-child(6):hover {
  background: rgba(114, 137, 218, 0.15);
  border-color: rgba(114, 137, 218, 0.4);
  box-shadow: 0 15px 30px rgba(114, 137, 218, 0.3);
}

/* WhatsApp */
.social-link:nth-child(7):hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.4);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

/* Resume */
.social-link:nth-child(8):hover {
  background: rgba(254, 202, 87, 0.15);
  border-color: rgba(254, 202, 87, 0.4);
  box-shadow: 0 15px 30px rgba(254, 202, 87, 0.3);
}

.social-link i {
  font-size: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  color: #feca57;
  text-shadow: 0 2px 8px rgba(254, 202, 87, 0.3);
  display: inline-block;
  transform: scale(1);
}

/* Custom X icon styling */
.social-link .x-icon {
  font-size: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  color: #feca57;
  text-shadow: 0 2px 8px rgba(254, 202, 87, 0.3);
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  display: inline-block;
  transform: scale(1);
}

.social-link:hover i {
  color: #ffd93d;
  text-shadow: 0 4px 12px rgba(255, 217, 61, 0.5);
  transform: scale(1.1) rotate(5deg);
  animation: socialIconPulse 0.6s ease-in-out;
}

.social-link:hover .x-icon {
  color: #ffd93d;
  text-shadow: 0 4px 12px rgba(255, 217, 61, 0.5);
  transform: scale(1.1) rotate(-5deg);
  animation: xIconPulse 0.6s ease-in-out;
}

@keyframes socialIconPulse {
  0% { transform: scale(1.1) rotate(5deg); }
  25% { transform: scale(1.15) rotate(3deg); }
  50% { transform: scale(1.2) rotate(0deg); }
  75% { transform: scale(1.15) rotate(-3deg); }
  100% { transform: scale(1.1) rotate(5deg); }
}

@keyframes xIconPulse {
  0% { transform: scale(1.1) rotate(-5deg); }
  25% { transform: scale(1.15) rotate(-3deg); }
  50% { transform: scale(1.2) rotate(0deg); }
  75% { transform: scale(1.15) rotate(3deg); }
  100% { transform: scale(1.1) rotate(-5deg); }
}

/* Platform-specific animation variations */
@keyframes professionalBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes codeRotate {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

@keyframes problemWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

@keyframes creativeSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes communicationBounce {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.05) translateY(-3px); }
}

@keyframes messagePop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes documentFlip {
  0% { transform: rotateX(0deg); }
  50% { transform: rotateX(180deg); }
  100% { transform: rotateX(360deg); }
}

.social-link span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Contact Form */
.contact-form {
  margin: 40px 0;
}

.form-group {
  margin: 20px 0;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #feca57;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.form-group input:hover,
.form-group textarea:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #feca57;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(254, 202, 87, 0.1);
  transform: translateY(-2px);
}

.submit-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: linear-gradient(45deg, #feca57, #ff9ff3);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.submit-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(254, 202, 87, 0.4);
  background: linear-gradient(45deg, #ffd93d, #ffb3ff);
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.form-message.show {
  opacity: 1;
  transform: translateY(0);
}

.form-message.success {
  background: rgba(150, 206, 180, 0.2);
  border: 1px solid #96ceb4;
  color: #96ceb4;
}

.form-message.error {
  background: rgba(255, 107, 107, 0.2);
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
}

/* Mobile-specific touch improvements */
@media (max-width: 768px) {
  /* Improve tap targets and reduce hover effects that don't work on touch */
  * {
    -webkit-tap-highlight-color: rgba(254, 202, 87, 0.3);
    -webkit-touch-callout: none;
  }

  /* Better scrolling behavior */
  html, body {
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    position: relative;
    height: 100%;
  }

  .nav-item:active,
  .social-link:active,
  .project-link:active,
  .submit-btn:active,
  .resume-link:active {
    transform: scale(0.95) !important;
    background: rgba(254, 202, 87, 0.2) !important;
    transition: all 0.1s ease !important;
  }

  /* Remove hover effects on mobile */
  .content-section:hover,
  .project-item:hover,
  .timeline-item:hover,
  .cert-item:hover,
  .skill-item:hover,
  .profile-section:hover,
  .nav-item:hover {
    transform: none !important;
    background: inherit !important;
  }
  
  /* Mobile-specific hover override for profile */
  .profile-section:hover {
    transform: translateY(-2px) !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }
  
  /* Mobile-specific hover for carousel items */
  .project-item:hover,
  .timeline-item:hover,
  .cert-item:hover {
    transform: translateY(-3px) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
  }

  /* Ensure proper scrolling */
  .main-content {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
  }

  /* Better text selection on mobile */
  .section-content p,
  .project-item p {
    -webkit-user-select: text;
    user-select: text;
  }

  /* Improve form inputs on mobile */
  input, textarea, select {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 8px;
    font-size: 16px; /* Prevent zoom on iOS */
  }

  /* Better button touch targets */
  button, .nav-item, .project-link, .submit-btn, .resume-link {
    min-height: 44px; /* iOS recommended touch target size */
    min-width: 44px;
  }

  /* Optimize animations for mobile */
  * {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
  }
  
  /* Better mobile navigation spacing */
  .nav-item {
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
  
  /* Enhanced touch feedback for navigation */
  .nav-item:active {
    background: rgba(254, 202, 87, 0.3) !important;
    transform: scale(0.95) !important;
    transition: all 0.1s ease !important;
  }
  
  .nav-item.active:active {
    background: rgba(254, 202, 87, 0.4) !important;
    transform: scale(0.95) !important;
  }
  
  /* Improved scrollbar for mobile */
  .main-content::-webkit-scrollbar {
    width: 2px;
  }
  
  .main-content::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .main-content::-webkit-scrollbar-thumb {
    background: rgba(254, 202, 87, 0.3);
    border-radius: 1px;
  }
}

/* Small mobile specific improvements */
@media (max-width: 480px) {
  /* Reduce animations for better performance */
  *,
  *::before,
  *::after {
    animation-duration: 0.3s !important;
    transition-duration: 0.3s !important;
  }

  /* Ensure readability */
  .section-content p {
    line-height: 1.7;
    margin-bottom: 16px;
  }

  /* Better form experience */
  .form-group input:focus,
  .form-group textarea:focus {
    transform: scale(1.02);
    border-color: #feca57;
  }

  /* Optimize images */
  .profile-image img,
  .education-image img,
  .project-image img {
    image-rendering: optimizeQuality;
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo {
    top: 20px;
    left: 20px;
    font-size: 18px;
    z-index: 1001;
  }

  .logo span {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .main-nav {
    left: 20px;
    top: 90px;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    max-width: calc(100vw - 40px);
    position: fixed;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-item {
    width: 105px;
    padding: 12px 10px;
    font-size: 11px;
    border-radius: 20px;
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-item:hover, .nav-item:active {
    transform: translateY(-2px) scale(1.05);
    background: rgba(254, 202, 87, 0.2);
  }

  .nav-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
  }

  .nav-info h3 {
    font-size: 9px;
    margin: 0;
    line-height: 1.2;
  }

  .nav-info p {
    font-size: 7px;
    margin: 2px 0 0 0;
    line-height: 1.1;
    opacity: 0.7;
  }

  .main-content {
    margin-top: 200px;
    width: 100vw;
    position: relative;
    top: 0;
    right: 0;
    border-radius: 0;
  }

  .content-section {
    padding: 30px 20px;
    margin: 0 10px 20px 10px;
    border-radius: 25px;
  }

  .section-content {
    padding: 20px;
  }

  .section-content h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .section-content h2 {
    font-size: 20px;
    margin: 20px 0 15px 0;
  }

  .section-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  .section-content:hover {
    transform: translateY(-2px) scale(1.005);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-item {
    padding: 20px;
  }

  .project-header h2 {
    font-size: 18px;
  }

  .project-tech {
    gap: 8px;
    margin: 15px 0;
  }

  .project-tech span {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .logo {
    font-size: 16px;
    top: 15px;
    left: 15px;
  }

  .logo span {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .main-nav {
    left: 15px;
    top: 75px;
    gap: 6px;
    padding: 12px;
    max-width: calc(100vw - 30px);
  }

  .nav-item {
    width: 95px;
    padding: 10px 8px;
    font-size: 10px;
    min-height: 55px;
  }

  .nav-icon {
    width: 14px;
    height: 14px;
    margin-right: 5px;
  }

  .nav-info h3 {
    font-size: 8px;
  }

  .nav-info p {
    font-size: 7px;
    opacity: 0.7;
  }

  .main-content {
    position: relative;
    width: 100vw;
    top: 0;
    right: auto;
    border-radius: 0;
    margin-top: 180px;
    height: auto;
    min-height: calc(100vh - 180px);
  }

  .content-section {
    padding: 25px 15px;
    margin: 0 5px 15px 5px;
    min-height: auto;
  }

  .section-content {
    padding: 20px 15px;
    border-radius: 20px;
  }

  .section-content h1 {
    font-size: 22px;
  }

  .section-content h2 {
    font-size: 18px;
  }

  .section-content p {
    font-size: 13px;
    line-height: 1.5;
  }

  .section-content:hover {
    transform: translateY(-2px) scale(1.005);
  }

  /* Mobile Projects Section - Small Mobile Swipe Carousel */
  .projects-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 15px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .projects-grid::-webkit-scrollbar {
    display: none;
  }
  
  .project-item {
    flex: 0 0 260px;
    scroll-snap-align: start;
    padding: 15px 12px;
  }
  
  .project-image {
    height: 140px;
  }
  
  /* Mobile Education Section - Small Mobile Swipe Carousel */
  .timeline {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 15px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .timeline::-webkit-scrollbar {
    display: none;
  }
  
  .timeline::before {
    display: none; /* Hide vertical timeline line on small mobile */
  }
  
  .timeline-item {
    flex: 0 0 260px;
    scroll-snap-align: start;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #ff6b6b;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .timeline-item::before {
    display: none; /* Hide timeline dots on small mobile */
  }
  
  .timeline-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-left-color: #ff8a8a;
    border-left-width: 6px;
  }
  
  /* Mobile Certificates Section - Small Mobile Swipe Carousel */
  .certifications {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 15px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .certifications::-webkit-scrollbar {
    display: none;
  }
  
  .cert-item {
    flex: 0 0 260px;
    scroll-snap-align: start;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #dc2626;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .cert-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-left-color: #ef4444;
    border-left-width: 6px;
  }
  
  /* Smaller indicators for small mobile */
  .swipe-dot {
    width: 6px;
    height: 6px;
  }
  
  .swipe-indicators {
    gap: 6px;
    margin-top: 15px;
  }

/* Tablet Responsiveness */
@media (max-width: 1024px) and (min-width: 769px) {
  .main-content {
    width: calc(100vw - 260px);
  }

  .main-nav {
    left: 30px;
    gap: 12px;
  }

  .nav-item {
    width: 200px;
    padding: 12px 18px;
    transition: all 0.3s ease;
  }

  .nav-item:hover {
    transform: translateX(6px) scale(1.01);
  }

  .content-section {
    padding: 50px 30px;
  }

  .section-content {
    padding: 40px 30px;
  }

  .section-content:hover {
    transform: translateY(-4px) scale(1.01);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .project-item {
    padding: 15px;
  }

  .project-header h2 {
    font-size: 16px;
  }

  .project-tech span {
    padding: 5px 10px;
    font-size: 10px;
  }

  /* Profile section is now handled in the main mobile media queries above */

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-item {
    padding: 15px;
  }

  .stat-item h3 {
    font-size: 24px;
  }

  .stat-item p {
    font-size: 12px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .skill-item {
    padding: 15px;
  }

  .skill-tag {
    padding: 8px 15px;
    font-size: 12px;
  }

  .social-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
  }

  .social-link {
    padding: 20px 15px;
    min-height: 100px;
  }

  .social-link i {
    font-size: 24px;
  }

  .social-link span {
    font-size: 12px;
  }

  .contact-methods {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .contact-item {
    padding: 20px;
  }

  .contact-form {
    padding: 20px;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px;
    font-size: 14px;
  }

  .submit-btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  /* Timeline mobile adjustments */
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 50px;
    margin: 30px 0;
  }

  .timeline-item::before {
    left: 14px;
    top: 25px;
    width: 12px;
    height: 12px;
  }

  .timeline-date {
    position: static;
    margin-bottom: 10px;
    width: auto;
    display: inline-block;
    font-size: 12px;
    padding: 6px 12px;
  }

  .education-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .education-image img {
    width: 60px;
    height: 60px;
  }

  .certifications {
    gap: 15px;
  }

  .cert-item {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .cert-item i {
    font-size: 30px;
    margin-bottom: 10px;
  }

  .cert-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .cert-item p {
    font-size: 12px;
    margin-bottom: 10px;
  }

  /* Improve touch targets */
  .nav-item,
  .social-link,
  .project-link,
  .cert-link,
  .submit-btn {
    min-height: 44px;
    min-width: 44px;
  }

  /* Better spacing for mobile */
  .skills-category {
    margin-bottom: 30px;
  }

  .skill-tags {
    gap: 10px;
    justify-content: center;
  }

  /* Project links mobile */
  .project-links {
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }

  .project-link {
    padding: 12px 20px;
    text-align: center;
    justify-content: center;
  }

  /* Hide background elements on small screens for better performance */
  .stars-container,
  .space-objects,
  .background-elements {
    display: none;
  }

  /* Optimize loading screen for mobile */
  .loading-screen {
    padding: 20px;
  }

  .solar-system-loader {
    width: 150px;
    height: 150px;
  }

  .loading-text h2 {
    font-size: 20px;
  }

  .loading-text p {
    font-size: 14px;
  }
}

  /* Timeline mobile adjustments */
  .timeline::before {
    left: 25px;
  }

  .timeline-item {
    padding-left: 60px;
    margin: 50px 0;
  }

  .timeline-item::before {
    left: 19px;
    top: 30px;
  }

  .timeline-date {
    position: static;
    margin-bottom: 15px;
    width: auto;
    display: inline-block;
  }

  .skill-item:hover {
    transform: translateY(-5px) scale(1.02);
  }

  .social-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .social-link:hover {
    transform: translateY(-5px) scale(1.02);
  }

  .timeline-date {
    position: static;
    margin-bottom: 15px;
    text-align: center;
    width: auto;
    font-size: 13px;
    color: #ffffff;
    font-weight: 700;
    background: rgba(139, 92, 246, 0.35);
    padding: 12px 24px;
    border-radius: 20px;
    border: 2px solid rgba(139, 92, 246, 0.6);
    display: inline-block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    transform: none;
    backdrop-filter: blur(10px);
  }

  .timeline-item {
    padding-left: 40px;
    margin: 50px 0;
    min-height: auto;
    display: block;
  }

  .timeline-item:first-child {
    margin-top: 30px;
  }

  .timeline-item:last-child {
    margin-bottom: 30px;
  }

  .timeline-item:hover {
    transform: translateX(5px);
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item::before {
    left: 9px;
    top: 80px;
    transform: none;
  }

  /* Space Objects Mobile */
  .asteroid-1 {
    width: 25px;
    height: 25px;
    top: 12%;
    left: 15%;
  }
  
  .satellite-1 {
    width: 35px;
    height: 35px;
    top: 88%;
    left: 70%;
  }
  
  .nebula-1 {
    width: 50px;
    height: 35px;
    top: 15%;
    right: 15%;
  }
  
  .object-tooltip {
    font-size: 10px;
    padding: 6px 8px;
    bottom: -35px;
  }

  /* Project items mobile */
  .project-item {
    padding: 20px;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Contact form mobile */
  .form-group input,
  .form-group textarea {
    padding: 12px;
  }

  .form-group input:hover,
  .form-group textarea:hover {
    transform: translateY(-1px);
  }

  .submit-btn {
    padding: 12px 24px;
    font-size: 13px;
  }

  .submit-btn:hover {
    transform: translateY(-2px) scale(1.02);
  }

  .contact-item:hover {
    transform: translateY(-3px) scale(1.01);
  }

  .contact-item:hover i {
    transform: scale(1.1) rotate(5deg);
    color: #ffd93d;
  }

  .contact-item i {
    font-size: 24px;
    color: #feca57;
    width: 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  }

  .contact-item h3 {
    margin: 0 0 5px 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }

  .contact-item p {
    margin: 5px 0;
    font-size: 14px;
    opacity: 0.8;
  }

  .contact-item a {
    color: #feca57;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .contact-item span {
    font-size: 12px;
    opacity: 0.6;
  }

  .cert-item:hover {
    transform: translateY(-3px) scale(1.01);
  }

  .education-item:hover {
    transform: translateX(5px) translateY(-2px);
  }

  /* Social grid mobile responsiveness */
  .social-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .social-link {
    padding: 25px 20px;
    min-height: 100px;
    gap: 12px;
  }

  .social-link:hover {
    transform: translateY(-3px) scale(1.02);
  }

  .social-link img {
    width: 32px;
    height: 32px;
  }

  .social-link i {
    font-size: 32px;
  }

  .social-link span {
    font-size: 12px;
  }
}

/* Message Button Bottom */
.message-button-bottom {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.message-button-bottom.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.message-button-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #feca57 0%, #ffd93d 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(254, 202, 87, 0.4);
  outline: none;
  position: relative;
  overflow: hidden;
}

.message-button-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.message-button-link:hover::before {
  opacity: 1;
}

.message-button-link:hover {
  background: linear-gradient(135deg, #ffd93d 0%, #feca57 100%);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(254, 202, 87, 0.6), 0 0 20px rgba(255, 217, 61, 0.3);
  animation: messageBounce 0.6s ease-in-out;
}

@keyframes messageBounce {
  0% { transform: translateY(-3px) scale(1.05); }
  25% { transform: translateY(-5px) scale(1.08); }
  50% { transform: translateY(-7px) scale(1.1); }
  75% { transform: translateY(-5px) scale(1.08); }
  100% { transform: translateY(-3px) scale(1.05); }
}

.message-button-link i {
  font-size: 24px;
  color: #ffffff;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 1;
  position: relative;
}

.message-button-link:hover i {
  color: #ffffff;
  transform: scale(1.1);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

@keyframes messageButtonPulse {
  0% { box-shadow: 0 8px 25px rgba(254, 202, 87, 0.4); }
  50% { box-shadow: 0 8px 25px rgba(254, 202, 87, 0.7), 0 0 0 10px rgba(254, 202, 87, 0.1); }
  100% { box-shadow: 0 8px 25px rgba(254, 202, 87, 0.4); }
}

.message-button-bottom.pulse .message-button-link {
  animation: messageButtonPulse 2s ease-in-out infinite;
}

/* Responsive styles for message button */
@media (max-width: 768px) {
  .message-button-bottom {
    bottom: 20px;
    right: 20px;
  }
  
  .message-button-link {
    width: 50px;
    height: 50px;
  }
  
  .message-button-link i {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .message-button-bottom {
    bottom: 15px;
    right: 15px;
  }
  
  .message-button-link {
    width: 45px;
    height: 45px;
  }
  
  .message-button-link i {
    font-size: 18px;
  }
}

/* Contact Footer */
.contact-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid rgba(254, 202, 87, 0.3);
  text-align: center;
}

.contact-footer p {
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.contact-footer p:first-child {
  font-size: 18px;
  font-weight: 600;
  color: #feca57;
  margin-bottom: 15px;
}

.contact-footer .fas.fa-heart {
  color: #e74c3c;
  animation: heartbeat 1.5s ease-in-out infinite;
  margin: 0 5px;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.contact-footer p:last-child {
  font-style: italic;
  color: rgba(254, 202, 87, 0.7);
}

/* Interactive Solar System Elements */
.interactive-solar-system {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 100vh;
  pointer-events: none;
  z-index: 25;
  overflow: hidden;
}

.solar-element {
  position: absolute;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform-origin: center;
}

.solar-element:hover .element-tooltip {
  opacity: 1;
  transform: translateY(-5px) scale(1);
  pointer-events: auto;
}

.element-tooltip {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.8);
  background: rgba(0, 0, 0, 0.8);
  color: #feca57;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(254, 202, 87, 0.3);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.element-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.8);
}

/* Sun Element */
.sun-element {
  top: 15%;
  left: 50px;
  animation: sunFloat 8s ease-in-out infinite;
}

.sun-body {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 30% 30%, #ffd93d, #feca57, #ff6b35);
  border-radius: 50%;
  position: relative;
  box-shadow: 
    0 0 30px rgba(255, 217, 61, 0.8),
    0 0 60px rgba(255, 217, 61, 0.4),
    inset -5px -5px 15px rgba(255, 107, 53, 0.3);
  animation: sunPulse 3s ease-in-out infinite;
}

.sun-corona {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(circle, transparent 60%, rgba(255, 217, 61, 0.2) 100%);
  border-radius: 50%;
  animation: coronaRotate 20s linear infinite;
}

.sun-flare {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: radial-gradient(circle, transparent 70%, rgba(255, 107, 53, 0.3) 100%);
  border-radius: 50%;
  animation: flareFlicker 2s ease-in-out infinite alternate;
}

/* Mercury Element */
.mercury-element {
  top: 25%;
  left: 80px;
  animation: mercuryOrbit 6s linear infinite;
}

.mercury-body {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 40% 40%, #bdc3c7, #95a5a6);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(189, 195, 199, 0.5);
}

/* Venus Element */
.venus-element {
  top: 35%;
  left: 70px;
  animation: venusOrbit 10s linear infinite;
}

.venus-body {
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 30% 30%, #f39c12, #e67e22);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 15px rgba(243, 156, 18, 0.6);
}

.venus-atmosphere {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: radial-gradient(circle, transparent 60%, rgba(243, 156, 18, 0.3) 100%);
  border-radius: 50%;
  animation: atmosphereSwirl 8s linear infinite;
}

/* Earth Element */
.earth-element {
  top: 45%;
  left: 90px;
  animation: earthOrbit 12s linear infinite;
}

.earth-body {
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 30% 30%, #3498db, #2980b9, #1e3799);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.6);
  overflow: hidden;
}

.earth-continents {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 60%;
  height: 40%;
  background: #27ae60;
  border-radius: 50% 20% 40% 60%;
  opacity: 0.8;
}

.earth-continents::after {
  content: '';
  position: absolute;
  top: 40%;
  right: 10%;
  width: 30%;
  height: 20%;
  background: #27ae60;
  border-radius: 60% 40%;
}

.earth-clouds {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: radial-gradient(circle, transparent 70%, rgba(255, 255, 255, 0.3) 100%);
  border-radius: 50%;
  animation: cloudRotate 15s linear infinite;
}

/* Mars Element */
.mars-element {
  top: 55%;
  left: 110px;
  animation: marsOrbit 16s linear infinite;
}

.mars-body {
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 40% 40%, #e74c3c, #c0392b, #8b0000);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
}

.mars-surface {
  position: absolute;
  top: 30%;
  left: 20%;
  width: 4px;
  height: 4px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  box-shadow: 
    8px 2px 0 1px rgba(0, 0, 0, 0.2),
    2px 8px 0 1px rgba(0, 0, 0, 0.25);
}

/* Jupiter Element */
.jupiter-element {
  top: 65%;
  left: 130px;
  animation: jupiterOrbit 20s linear infinite;
}

.jupiter-body {
  width: 35px;
  height: 35px;
  background: radial-gradient(circle at 30% 30%, #f39c12, #e67e22, #d35400);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 25px rgba(243, 156, 18, 0.6);
  overflow: hidden;
}

.jupiter-bands {
  position: absolute;
  top: 20%;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 
    0 8px 0 rgba(0, 0, 0, 0.15),
    0 16px 0 rgba(0, 0, 0, 0.1);
}

.jupiter-spot {
  position: absolute;
  top: 40%;
  right: 20%;
  width: 8px;
  height: 6px;
  background: rgba(192, 57, 43, 0.8);
  border-radius: 50%;
}

/* Saturn Element */
.saturn-element {
  top: 75%;
  left: 150px;
  animation: saturnOrbit 24s linear infinite;
}

.saturn-body {
  width: 30px;
  height: 30px;
  background: radial-gradient(circle at 30% 30%, #f1c40f, #f39c12, #e67e22);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px rgba(241, 196, 15, 0.6);
}

.saturn-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(70deg);
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  box-shadow: 
    inset 0 0 0 3px transparent,
    inset 0 0 0 5px rgba(255, 255, 255, 0.4),
    inset 0 0 0 7px transparent,
    inset 0 0 0 9px rgba(255, 255, 255, 0.2);
}

/* Asteroids */
.asteroid1-element {
  top: 20%;
  left: 25px;
  animation: asteroidFloat1 7s ease-in-out infinite;
}

.asteroid2-element {
  top: 60%;
  left: 30px;
  animation: asteroidFloat2 9s ease-in-out infinite;
}

.asteroid3-element {
  top: 80%;
  left: 180px;
  animation: asteroidFloat3 11s ease-in-out infinite;
}

.asteroid-body {
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 40% 40%, #636e72, #2d3436);
  border-radius: 40% 60% 70% 30%;
  box-shadow: 0 0 8px rgba(99, 110, 114, 0.4);
}

/* Solar System Animations */
@keyframes sunFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(180deg); }
}

@keyframes sunPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes coronaRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes flareFlicker {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

@keyframes mercuryOrbit {
  from { transform: rotate(0deg) translateX(20px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(20px) rotate(-360deg); }
}

@keyframes venusOrbit {
  from { transform: rotate(0deg) translateX(25px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(25px) rotate(-360deg); }
}

@keyframes earthOrbit {
  from { transform: rotate(0deg) translateX(30px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(30px) rotate(-360deg); }
}

@keyframes cloudRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes atmosphereSwirl {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes marsOrbit {
  from { transform: rotate(0deg) translateX(35px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(35px) rotate(-360deg); }
}

@keyframes jupiterOrbit {
  from { transform: rotate(0deg) translateX(50px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(50px) rotate(-360deg); }
}

@keyframes saturnOrbit {
  from { transform: rotate(0deg) translateX(60px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}

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

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

@keyframes asteroidFloat3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(90deg); }
}
