/* Existing root variables remain unchanged */
:root {
    /* Light theme - Modern cyber aesthetic */
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --accent-color: #06b6d4;
    --navbar-bg: rgba(248, 250, 252, 0.9);
    --navbar-border: rgba(6, 182, 212, 0.2);
    --hover-bg: rgba(6, 182, 212, 0.12);
    --active-bg: rgba(6, 182, 212, 0.18);
    --hamburger-color: #1e293b;
    --shadow-color: rgba(6, 182, 212, 0.15);
    
    /* Additional cool colors */
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --border-color: rgba(6, 182, 212, 0.15);
    --card-bg: rgba(255, 255, 255, 0.8);
    --gradient-primary: linear-gradient(135deg, #06b6d4, #8b5cf6);
    --gradient-secondary: linear-gradient(135deg, #10b981, #06b6d4);
}

[data-theme="dark"] {
    /* Dark theme - Neon cyberpunk vibes */
    --bg-color: #0f0f0f;
    --text-color: #f1f5f9;
    --accent-color: #00d9ff;
    --navbar-bg: rgba(15, 15, 15, 0.95);
    --navbar-border: rgba(0, 217, 255, 0.3);
    --hover-bg: rgba(0, 217, 255, 0.15);
    --active-bg: rgba(0, 217, 255, 0.25);
    --hamburger-color: #f1f5f9;
    --shadow-color: rgba(0, 217, 255, 0.25);
    
    /* Additional cool colors for dark mode */
    --secondary-color: #a855f7;
    --success-color: #00ff88;
    --warning-color: #ffaa00;
    --error-color: #ff3366;
    --border-color: rgba(0, 217, 255, 0.25);
    --card-bg: rgba(20, 20, 20, 0.8);
    --gradient-primary: linear-gradient(135deg, #00d9ff, #a855f7);
    --gradient-secondary: linear-gradient(135deg, #00ff88, #00d9ff);
    
    /* Neon glow effects */
    --neon-glow: 0 0 10px rgba(0, 217, 255, 0.3), 0 0 20px rgba(0, 217, 255, 0.2);
    --text-glow: 0 0 5px rgba(241, 245, 249, 0.3);
}

/* Global Theme Transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Navbar and other sections remain unchanged */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--navbar-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--navbar-bg);
    box-shadow: 0 2px 20px var(--shadow-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
    background: var(--hover-bg);
}

.nav-link.active {
    color: var(--accent-color);
    background: var(--active-bg);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
    color: #f39c12;
}

.theme-toggle .moon-icon {
    color: #74c0fc;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--hamburger-color);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active {
    transform: rotate(180deg);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .nav-right {
        gap: 0.5rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
    
    .theme-icon {
        font-size: 1.1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--navbar-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        width: 80%;
        text-align: center;
        border-radius: 10px;
        margin: 0.5rem 0;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .nav-link.active {
        background: var(--active-bg);
        color: var(--accent-color);
    }
}

/* Tablet Styles */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .nav-container {
        padding: 0 30px;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
    }
}


/* Fix particles position */

  #particles-js {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  border: 5px solid red;
}





/* Home Section */
.home-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    min-height: 100vh;
    padding: 0 2rem;
}

.profile-pic-container {
    position: relative;
    width: 350px;
    height: 350px;
    animation: float 6s ease-in-out infinite;
}


.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    
    /* Multi-layered glowing border */
    border: 4px solid transparent;
    background: 
        linear-gradient(45deg, #ff006e, #8338ec, #3a86ff, #06ffa5, #ffbe0b, #fb5607) border-box,
        linear-gradient(135deg, #1a1a2e, #16213e, #0f3460) padding-box;
    background-clip: border-box, padding-box;
    background-size: 400% 400%;
    
    /* Enhanced glow effects */
    box-shadow: 
        0 0 20px rgba(255, 0, 110, 0.4),
        0 0 40px rgba(131, 56, 236, 0.3),
        0 0 60px rgba(58, 134, 255, 0.2),
        0 0 80px rgba(6, 255, 165, 0.15),
        inset 0 0 30px rgba(255, 255, 255, 0.1),
        inset 0 0 50px rgba(100, 255, 218, 0.05);
    
    /* Smooth transitions */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Enhanced filters with holographic base */
    filter: 
        brightness(1.1) 
        contrast(1.2) 
        saturate(1.3) 
        hue-rotate(0deg) 
        drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    
    /* Holographic overlay */
    position: relative;
    
    /* Combined animations */
    animation: 
        gradientFlow 6s ease-in-out infinite,
        morphicFloat 4s ease-in-out infinite,
        holographicShimmer 3s ease-in-out infinite,
        pulseGlow 3s ease-in-out infinite alternate;
}

.profile-pic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.8) 50%,
        transparent 70%
    );
    background-size: 200% 200%;
    opacity: 0;
    pointer-events: none;
    animation: shimmerSweep 3s ease-in-out infinite;
}
}

.profile-pic:hover {
    transform: scale(1.1) rotate(5deg);
    
    /* Intensified hover effects */
    box-shadow: 
        0 0 30px rgba(255, 0, 110, 0.7),
        0 0 60px rgba(131, 56, 236, 0.5),
        0 0 90px rgba(58, 134, 255, 0.4),
        0 0 120px rgba(6, 255, 165, 0.3),
        0 0 150px rgba(255, 190, 11, 0.2),
        inset 0 0 40px rgba(255, 255, 255, 0.2);
    
    filter: 
        brightness(1.3) 
        contrast(1.4) 
        saturate(1.6) 
        hue-rotate(180deg) 
        drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    
    /* Speed up animations on hover */
    animation-duration: 2s, 1.5s, 1s, 0.8s;
}

.profile-pic-container {
    position: relative;
    display: inline-block;
}

.profile-pic-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: 
        conic-gradient(
            from 0deg,
            #ff006e 0deg,
            #8338ec 60deg,
            #3a86ff 120deg,
            #06ffa5 180deg,
            #ffbe0b 240deg,
            #fb5607 300deg,
            #ff006e 360deg
        );
    opacity: 0.6;
    z-index: -1;
    animation: 
        spinBorder 4s linear infinite,
        breathe 3s ease-in-out infinite alternate;
    filter: blur(8px);
}

.profile-pic-container:hover::before {
    opacity: 1;
    filter: blur(12px);
    animation-duration: 1s, 1.5s;
    transform: scale(1.2);
}

.profile-pic-container::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: 
        radial-gradient(
            circle,
            transparent 40%,
            rgba(255, 0, 110, 0.1) 50%,
            rgba(131, 56, 236, 0.1) 60%,
            rgba(58, 134, 255, 0.1) 70%,
            transparent 80%
        );
    z-index: -2;
    animation: reverseOrbit 6s linear infinite;
}

/* Enhanced floating animation with morphing */
@keyframes morphicFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        border-radius: 50%;
    }
    25% {
        transform: translateY(-15px) rotate(2deg) scale(1.02);
        border-radius: 45% 55% 52% 48%;
    }
    50% {
        transform: translateY(-8px) rotate(0deg) scale(1.01);
        border-radius: 48% 52% 50% 50%;
    }
    75% {
        transform: translateY(-20px) rotate(-2deg) scale(1.03);
        border-radius: 52% 48% 45% 55%;
    }
}

/* Flowing gradient animation */
@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%, 0% 50%;
    }
    25% {
        background-position: 50% 0%, 25% 75%;
    }
    50% {
        background-position: 100% 50%, 50% 50%;
    }
    75% {
        background-position: 50% 100%, 75% 25%;
    }
}

/* Spinning border effect */
@keyframes spinBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Breathing glow effect */
@keyframes breathe {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* Reverse orbital motion */
@keyframes reverseOrbit {
    0% {
        transform: rotate(360deg) scale(1);
    }
    100% {
        transform: rotate(0deg) scale(1.05);
    }
}

/* Holographic shimmer effect */
@keyframes holographicShimmer {
    0% {
        filter: 
            brightness(1.1) 
            contrast(1.2) 
            saturate(1.3) 
            hue-rotate(0deg) 
            drop-shadow(0 10px 20px rgba(255, 0, 110, 0.3));
        background-position: -100% 0;
    }
    25% {
        filter: 
            brightness(1.3) 
            contrast(1.4) 
            saturate(1.1) 
            hue-rotate(15deg) 
            drop-shadow(0 12px 25px rgba(131, 56, 236, 0.4));
        background-position: -50% 0;
    }
    50% {
        filter: 
            brightness(1.5) 
            contrast(1.6) 
            saturate(0.9) 
            hue-rotate(30deg) 
            drop-shadow(0 15px 30px rgba(58, 134, 255, 0.5));
        background-position: 0% 0;
    }
    75% {
        filter: 
            brightness(1.3) 
            contrast(1.4) 
            saturate(1.1) 
            hue-rotate(15deg) 
            drop-shadow(0 12px 25px rgba(6, 255, 165, 0.4));
        background-position: 50% 0;
    }
    100% {
        filter: 
            brightness(1.1) 
            contrast(1.2) 
            saturate(1.3) 
            hue-rotate(0deg) 
            drop-shadow(0 10px 20px rgba(255, 0, 110, 0.3));
        background-position: 100% 0;
    }
}

/* Pulsing glow intensity */
@keyframes pulseGlow {
    0% {
        box-shadow: 
            0 0 20px rgba(255, 0, 110, 0.4),
            0 0 40px rgba(131, 56, 236, 0.3),
            0 0 60px rgba(58, 134, 255, 0.2),
            0 0 80px rgba(6, 255, 165, 0.15),
            inset 0 0 30px rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(255, 0, 110, 0.6),
            0 0 60px rgba(131, 56, 236, 0.4),
            0 0 90px rgba(58, 134, 255, 0.3),
            0 0 120px rgba(6, 255, 165, 0.25),
            inset 0 0 40px rgba(255, 255, 255, 0.15);
    }
}

.intro-block {
    max-width: 600px;
}

.intro {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}
#Stylish-name {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: #1a1a1a;
  -webkit-text-stroke: 1px rgba(220, 38, 38, 0.6);
  text-stroke: 1px rgba(220, 38, 38, 0.6);
  text-shadow: 
    0 2px 4px rgba(220, 38, 38, 0.3),
    0 4px 8px rgba(220, 38, 38, 0.2),
    0 0 20px rgba(220, 38, 38, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  cursor: pointer;
  filter: drop-shadow(0 2px 8px rgba(220, 38, 38, 0.15));
  position: relative;
  overflow: visible;
  letter-spacing: 0.02em;
  animation: colorGlow 4s ease-in-out infinite;
}

#Stylish-name:hover {
  transform: scale(1.05) translateY(-2px);
  -webkit-text-stroke: 1.5px rgba(220, 38, 38, 0.8);
  text-stroke: 1.5px rgba(220, 38, 38, 0.8);
  text-shadow: 
    0 4px 8px rgba(220, 38, 38, 0.4),
    0 8px 16px rgba(220, 38, 38, 0.25),
    0 0 30px rgba(220, 38, 38, 0.15);
  filter: drop-shadow(0 4px 12px rgba(220, 38, 38, 0.25));
  animation: colorGlowHover 2s ease-in-out infinite;
}

#Stylish-name::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 20%, transparent 60%);
  opacity: 0;
  animation: subtleGlow 3s infinite ease-in-out, colorCycle 6s infinite;
  z-index: -1;
  border-radius: 8px;
}

#Stylish-name::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 25%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.3) 0.8%, transparent 1.5%),
    radial-gradient(circle at 85% 30%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.3) 0.8%, transparent 1.5%),
    radial-gradient(circle at 25% 75%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.3) 0.8%, transparent 1.5%),
    radial-gradient(circle at 75% 80%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.3) 0.8%, transparent 1.5%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  animation: particleColorCycle 5s infinite;
}

#Stylish-name:hover::before {
  opacity: 1;
  animation: particleEmit 0.8s ease-out infinite, particleColorCycleHover 3s infinite;
}

/* Color-changing glow animations */
@keyframes colorGlow {
  0% {
    -webkit-text-stroke: 1px rgba(220, 38, 38, 0.6);
    text-stroke: 1px rgba(220, 38, 38, 0.6);
    text-shadow: 
      0 2px 4px rgba(220, 38, 38, 0.3),
      0 4px 8px rgba(220, 38, 38, 0.2),
      0 0 20px rgba(220, 38, 38, 0.1);
    filter: drop-shadow(0 2px 8px rgba(220, 38, 38, 0.15));
  }
  25% {
    -webkit-text-stroke: 1px rgba(59, 130, 246, 0.6);
    text-stroke: 1px rgba(59, 130, 246, 0.6);
    text-shadow: 
      0 2px 4px rgba(59, 130, 246, 0.3),
      0 4px 8px rgba(59, 130, 246, 0.2),
      0 0 20px rgba(59, 130, 246, 0.1);
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.15));
  }
  50% {
    -webkit-text-stroke: 1px rgba(168, 85, 247, 0.6);
    text-stroke: 1px rgba(168, 85, 247, 0.6);
    text-shadow: 
      0 2px 4px rgba(168, 85, 247, 0.3),
      0 4px 8px rgba(168, 85, 247, 0.2),
      0 0 20px rgba(168, 85, 247, 0.1);
    filter: drop-shadow(0 2px 8px rgba(168, 85, 247, 0.15));
  }
  75% {
    -webkit-text-stroke: 1px rgba(34, 197, 94, 0.6);
    text-stroke: 1px rgba(34, 197, 94, 0.6);
    text-shadow: 
      0 2px 4px rgba(34, 197, 94, 0.3),
      0 4px 8px rgba(34, 197, 94, 0.2),
      0 0 20px rgba(34, 197, 94, 0.1);
    filter: drop-shadow(0 2px 8px rgba(34, 197, 94, 0.15));
  }
  100% {
    -webkit-text-stroke: 1px rgba(220, 38, 38, 0.6);
    text-stroke: 1px rgba(220, 38, 38, 0.6);
    text-shadow: 
      0 2px 4px rgba(220, 38, 38, 0.3),
      0 4px 8px rgba(220, 38, 38, 0.2),
      0 0 20px rgba(220, 38, 38, 0.1);
    filter: drop-shadow(0 2px 8px rgba(220, 38, 38, 0.15));
  }
}

@keyframes colorGlowHover {
  0% {
    -webkit-text-stroke: 1.5px rgba(220, 38, 38, 0.8);
    text-stroke: 1.5px rgba(220, 38, 38, 0.8);
    text-shadow: 
      0 4px 8px rgba(220, 38, 38, 0.4),
      0 8px 16px rgba(220, 38, 38, 0.25),
      0 0 30px rgba(220, 38, 38, 0.15);
    filter: drop-shadow(0 4px 12px rgba(220, 38, 38, 0.25));
  }
  33% {
    -webkit-text-stroke: 1.5px rgba(59, 130, 246, 0.8);
    text-stroke: 1.5px rgba(59, 130, 246, 0.8);
    text-shadow: 
      0 4px 8px rgba(59, 130, 246, 0.4),
      0 8px 16px rgba(59, 130, 246, 0.25),
      0 0 30px rgba(59, 130, 246, 0.15);
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.25));
  }
  66% {
    -webkit-text-stroke: 1.5px rgba(168, 85, 247, 0.8);
    text-stroke: 1.5px rgba(168, 85, 247, 0.8);
    text-shadow: 
      0 4px 8px rgba(168, 85, 247, 0.4),
      0 8px 16px rgba(168, 85, 247, 0.25),
      0 0 30px rgba(168, 85, 247, 0.15);
    filter: drop-shadow(0 4px 12px rgba(168, 85, 247, 0.25));
  }
  100% {
    -webkit-text-stroke: 1.5px rgba(220, 38, 38, 0.8);
    text-stroke: 1.5px rgba(220, 38, 38, 0.8);
    text-shadow: 
      0 4px 8px rgba(220, 38, 38, 0.4),
      0 8px 16px rgba(220, 38, 38, 0.25),
      0 0 30px rgba(220, 38, 38, 0.15);
    filter: drop-shadow(0 4px 12px rgba(220, 38, 38, 0.25));
  }
}

@keyframes colorCycle {
  0% {
    background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 20%, transparent 60%);
  }
  25% {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 20%, transparent 60%);
  }
  50% {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 20%, transparent 60%);
  }
  75% {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 20%, transparent 60%);
  }
  100% {
    background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 20%, transparent 60%);
  }
}

@keyframes particleColorCycle {
  0% {
    background: 
      radial-gradient(circle at 15% 25%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.3) 0.8%, transparent 1.5%),
      radial-gradient(circle at 85% 30%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.3) 0.8%, transparent 1.5%),
      radial-gradient(circle at 25% 75%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.3) 0.8%, transparent 1.5%),
      radial-gradient(circle at 75% 80%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.3) 0.8%, transparent 1.5%);
  }
  25% {
    background: 
      radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.3) 0.8%, transparent 1.5%),
      radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.3) 0.8%, transparent 1.5%),
      radial-gradient(circle at 25% 75%, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.3) 0.8%, transparent 1.5%),
      radial-gradient(circle at 75% 80%, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.3) 0.8%, transparent 1.5%);
  }
  50% {
    background: 
      radial-gradient(circle at 15% 25%, rgba(168, 85, 247, 0) 0%, rgba(168, 85, 247, 0.3) 0.8%, transparent 1.5%),
      radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0) 0%, rgba(168, 85, 247, 0.3) 0.8%, transparent 1.5%),
      radial-gradient(circle at 25% 75%, rgba(168, 85, 247, 0) 0%, rgba(168, 85, 247, 0.3) 0.8%, transparent 1.5%),
      radial-gradient(circle at 75% 80%, rgba(168, 85, 247, 0) 0%, rgba(168, 85, 247, 0.3) 0.8%, transparent 1.5%);
  }
  75% {
    background: 
      radial-gradient(circle at 15% 25%, rgba(34, 197, 94, 0) 0%, rgba(34, 197, 94, 0.3) 0.8%, transparent 1.5%),
      radial-gradient(circle at 85% 30%, rgba(34, 197, 94, 0) 0%, rgba(34, 197, 94, 0.3) 0.8%, transparent 1.5%),
      radial-gradient(circle at 25% 75%, rgba(34, 197, 94, 0) 0%, rgba(34, 197, 94, 0.3) 0.8%, transparent 1.5%),
      radial-gradient(circle at 75% 80%, rgba(34, 197, 94, 0) 0%, rgba(34, 197, 94, 0.3) 0.8%, transparent 1.5%);
  }
  100% {
    background: 
      radial-gradient(circle at 15% 25%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.3) 0.8%, transparent 1.5%),
      radial-gradient(circle at 85% 30%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.3) 0.8%, transparent 1.5%),
      radial-gradient(circle at 25% 75%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.3) 0.8%, transparent 1.5%),
      radial-gradient(circle at 75% 80%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.3) 0.8%, transparent 1.5%);
  }
}

@keyframes particleColorCycleHover {
  0% {
    background: 
      radial-gradient(circle at 15% 25%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.4) 0.8%, transparent 1.5%),
      radial-gradient(circle at 85% 30%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.4) 0.8%, transparent 1.5%),
      radial-gradient(circle at 25% 75%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.4) 0.8%, transparent 1.5%),
      radial-gradient(circle at 75% 80%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.4) 0.8%, transparent 1.5%);
  }
  33% {
    background: 
      radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.4) 0.8%, transparent 1.5%),
      radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.4) 0.8%, transparent 1.5%),
      radial-gradient(circle at 25% 75%, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.4) 0.8%, transparent 1.5%),
      radial-gradient(circle at 75% 80%, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.4) 0.8%, transparent 1.5%);
  }
  66% {
    background: 
      radial-gradient(circle at 15% 25%, rgba(168, 85, 247, 0) 0%, rgba(168, 85, 247, 0.4) 0.8%, transparent 1.5%),
      radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0) 0%, rgba(168, 85, 247, 0.4) 0.8%, transparent 1.5%),
      radial-gradient(circle at 25% 75%, rgba(168, 85, 247, 0) 0%, rgba(168, 85, 247, 0.4) 0.8%, transparent 1.5%),
      radial-gradient(circle at 75% 80%, rgba(168, 85, 247, 0) 0%, rgba(168, 85, 247, 0.4) 0.8%, transparent 1.5%);
  }
  100% {
    background: 
      radial-gradient(circle at 15% 25%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.4) 0.8%, transparent 1.5%),
      radial-gradient(circle at 85% 30%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.4) 0.8%, transparent 1.5%),
      radial-gradient(circle at 25% 75%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.4) 0.8%, transparent 1.5%),
      radial-gradient(circle at 75% 80%, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.4) 0.8%, transparent 1.5%);
  }
}

/* Original animations */
@keyframes subtleGlow {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.02);
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

@keyframes professionalParticles {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0.8;
  }
  30% {
    transform: translateY(-8px) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-20px) scale(0.4);
    opacity: 0;
  }
}

@keyframes particleEmit {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0.8;
  }
  30% {
    transform: translateY(-8px) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-20px) scale(0.4);
    opacity: 0;
  }
}
.typewriter {
    font-size: 1.5rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

#changing-text::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: var(--text-color);
    margin-left: 5px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-primary,
.cta-secondary {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-primary {
    position: relative;
    display: inline-block;
    padding: 14px 32px;
    color: var(--bg-color);
    background-color: var(--text-color);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    overflow: hidden;
    z-index: 1;
    transition: box-shadow 0.3s ease;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    z-index: -1;
    animation: side-glow 2s linear infinite;
}

.cta-primary:hover {
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
}

@keyframes side-glow {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.cta-secondary {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex; /* Changed to flex for centering */
    align-items: center; /* Vertical centering */
    justify-content: center; /* Horizontal centering */
    text-align: center; /* Fallback for text alignment */
    min-width: 120px; /* Optional: ensures button has enough width */
}

.cta-secondary:hover {
    background: var(--accent-color);
    color: var(--background-color, #fff);
    transform: scale(1.05);
    box-shadow: 0 0 15px 3px var(--accent-color), 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Skills Section */
.section {
     padding: 6rem 2rem;
    background: var(--bg-color) !important;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-color);
}

/* Skills Section */
.skills-section {
     position: relative;
    padding: 6rem 2rem;
    background-color: var(--bg-color) !important; /* Force same background as other sections */
    overflow: hidden;
    z-index: 1;
}

.skills-section {
    background-color: var(--bg-color) !important;
}

/* Remove floating background elements that might cause color differences */
.skills-section::before,
.skills-section::after {
    display: none !important; /* Completely hide floating elements */
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-color);
}

.skills-container {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    color: var(--text-color);
     background: transparent;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.2s;
}

.skills-header {
    text-align: center;
    margin-bottom: 80px; /* Increased for better spacing */
    padding: 20px; /* Added padding for better layout */
    background: linear-gradient(180deg, rgba(245, 245, 245, 0.05) 0%, rgba(245, 245, 245, 0) 100%); /* Subtle background gradient */
    border-radius: 12px; /* Rounded corners for modern feel */
}

.skills-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 800; /* Bolder for emphasis */
    margin-bottom: 24px; /* Slightly increased spacing */
    background: linear-gradient(90deg, #4a90e2, #e91e63); /* Vibrant gradient text */
    -webkit-background-clip: text; /* For gradient text effect */
    background-clip: text;
    color: transparent; /* Required for gradient text */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    opacity: 0;
    transform: translateY(-40px) scale(0.95); /* Enhanced animation start */
    animation: titleSlideIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards; /* Smoother easing */
    animation-delay: 0.3s; /* Slightly faster start */
}

.skills-header p {
    font-size: clamp(1rem, 2.5vw, 1.3rem); /* Responsive paragraph text */
    opacity: 0;
    max-width: 700px; /* Slightly wider for better readability */
    margin: 0 auto;
    line-height: 1.8; /* Increased for better readability */
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* Subtle shadow for text */
    transform: translateY(30px); /* Slightly larger initial offset */
    animation: textFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards; /* Smoother easing */
    animation-delay: 0.6s; /* Adjusted for better sequence */
}

/* Keyframes for animations */
@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.resume-section {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: resumeSlideIn 1s ease-out forwards;
    animation-delay: 1.1s;
}

.resume-btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--hover-bg);
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.resume-btn:hover {
    background: var(--active-bg);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.skill-item {
    background: var(--navbar-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--navbar-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-50px) rotateY(-10deg);
    perspective: 1000px;
}

.skill-item.slide-in {
    animation: skillSlideIn 0.8s ease-out forwards;
}

.skill-item:nth-child(odd).slide-in {
    animation: skillSlideInLeft 0.8s ease-out forwards;
}

.skill-item:nth-child(even).slide-in {
    animation: skillSlideInRight 0.8s ease-out forwards;
}

.skill-item:hover {
    transform: translateY(-5px);
    background: var(--hover-bg);
    border-color: var(--accent-color);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.6s ease;
}

.skill-item.slide-in .skill-name {
    transform: translateX(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.skill-percentage {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    transform: scale(0);
    opacity: 0;
    transition: all 0.6s ease;
}

.skill-item.slide-in .skill-percentage {
    transform: scale(1);
    opacity: 1;
    transition-delay: 0.5s;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--navbar-border);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s ease;
}

.skill-item.slide-in .progress-bar {
    transform: scaleX(1);
    transition-delay: 0.2s;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    width: 0%;
    transition: width 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced shimmer effect */
.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 2.5s infinite;
    animation-delay: 0.5s;
}

/* Pulsing glow effect */
.progress-fill::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--accent-color);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    animation: pulse 3s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes shimmer {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.02);
    }
}

/* Fill animation with bounce effect */
.skill-item.animate .progress-fill {
    animation: fillProgress 2.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes fillProgress {
    0% {
        width: 0%;
        transform: scaleY(1);
    }
    80% {
        transform: scaleY(1.1);
    }
    100% {
        transform: scaleY(1);
    }
}

/* Additional wave animation for progress bars */
.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--hover-bg) 0%, var(--active-bg) 50%, var(--hover-bg) 100%);
    animation: wave 4s ease-in-out infinite;
    border-radius: 10px;
}

@keyframes wave {
    0%, 100% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        transform: translateX(100%);
        opacity: 0.3;
    }
}

/* New scroll-triggered animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 0.9;
        transform: translateY(0);
    }
}

@keyframes resumeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes skillSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes skillSlideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotateY(-15deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg) scale(1);
    }
}

@keyframes skillSlideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px) rotateY(15deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg) scale(1);
    }
}

@keyframes parallaxFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Floating elements for parallax effect */
.skills-section::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--hover-bg), transparent);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation: parallaxFloat 6s ease-in-out infinite;
}

.skills-section::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--active-bg), transparent);
    border-radius: 50%;
    bottom: 15%;
    right: 15%;
    animation: parallaxFloat 8s ease-in-out infinite reverse;
}


/* Projects Section */
.section {
    padding: 80px 0;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--accent-color), #2980b9);
    border-radius: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    background: var(--bg-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--navbar-border);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px var(--shadow-color);
    border-color: var(--accent-color);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(52, 152, 219, 0.8), 
        rgba(41, 128, 185, 0.6)
    );
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
    opacity: 0.4;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.project-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.project-card:hover .project-content h3 {
    color: var(--accent-color);
}

.project-content p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-content p {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.project-link:hover::before {
    left: 0;
}

.project-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.project-link:active {
    transform: translateY(0);
}

/* Dark theme specific adjustments */
[data-theme="dark"] .project-link::before {
    background: var(--accent-color);
}

[data-theme="dark"] .project-link:hover {
    color: #1a1a1a;
}

/* Responsive design */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-link {
        text-align: center;
    }
}

/* Coming Soon styling for empty project images */
.project-image:empty {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
}

.project-image:empty::before {
    content: 'COMING SOON';
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.project-image:empty::after {
    content: '⚡';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -120%);
    font-size: 2rem;
    opacity: 0.7;
    animation: float 2s ease-in-out infinite;
    z-index: 1;
}

.project-card:hover .project-image:empty::before {
    transform: scale(1.05);
    opacity: 1;
    letter-spacing: 3px;
}

.project-card:hover .project-image:empty::after {
    animation-duration: 1s;
    opacity: 1;
}



/* Coming Soon content styling */
.project-card.coming-soon .project-content h3 {
    color: var(--accent-color);
    position: relative;
}

.project-card.coming-soon .project-content h3::after {
    content: '✨';
    margin-left: 10px;
    font-size: 0.8em;
    animation: sparkle 1.5s ease-in-out infinite;
}

.project-card.coming-soon .project-content p {
    font-style: italic;
    opacity: 0.7;
}

.project-card.coming-soon .project-link {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Contact Section */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--accent-color), #2980b9);
    border-radius: 2px;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-form {
    background: var(--bg-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-color);
    border: 1px solid var(--navbar-border);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #2980b9, var(--accent-color));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid var(--navbar-border);
    border-radius: 12px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    outline: none;
    box-sizing: border-box;
    position: relative;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-color);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
    opacity: 0.8;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--accent-color), #2980b9);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #2980b9, var(--accent-color));
    transition: left 0.4s ease;
    z-index: 1;
}

.submit-btn span {
    position: relative;
    z-index: 2;
}

.submit-btn:hover::before {
    left: 0;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Loading state for form submission */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Success/Error states */
.contact-form.success {
    border-color: #27ae60;
}

.contact-form.success::before {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.contact-form.error {
    border-color: #e74c3c;
    animation: shake 0.5s ease-in-out;
}

.contact-form.error::before {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Dark theme specific adjustments */
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
    background: var(--bg-color);
    border-color: var(--navbar-border);
}

[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Floating label effect */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input,
.input-group textarea {
    margin-bottom: 0;
    padding-top: 20px;
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 20px;
    color: var(--text-color);
    opacity: 0.6;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
}

.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {
    top: 5px;
    font-size: 0.8rem;
    opacity: 1;
    color: var(--accent-color);
}

/* Responsive design */
@media (max-width: 768px) {
    .contact-container {
        padding: 0 15px;
    }
    
    .contact-form {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Additional contact info styling (if needed) */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* Social Buttons Container */
.social-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

/* Base Social Button Styling */
.social-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid var(--navbar-border);
    background: var(--bg-color);
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-color);
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.social-btn i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Hover Effects */
.social-btn:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 30px var(--shadow-color);
    border-color: transparent;
}

.social-btn:hover::before {
    transform: scale(1);
}

.social-btn:hover i {
    color: white;
    transform: scale(1.2);
}

/* Active/Click Effect */
.social-btn:active {
    transform: translateY(-4px) scale(1.05);
}

/* Platform-specific Colors */
.social-btn.instagram::before {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn.github::before {
    background: linear-gradient(45deg, #333, #24292e, #1a1a1a);
}

.social-btn.linkedin::before {
    background: linear-gradient(45deg, #0077b5, #005885, #003d5c);
}

/* Platform-specific Hover Colors for Icons */
.social-btn.instagram:hover i {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.social-btn.github:hover i {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.social-btn.linkedin:hover i {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Ripple Effect on Click */
.social-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
}

.social-btn:active::after {
    width: 100px;
    height: 100px;
}

/* Pulse Animation for Attention */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px var(--shadow-color), 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    70% {
        box-shadow: 0 4px 15px var(--shadow-color), 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 4px 15px var(--shadow-color), 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.social-btn:nth-child(2) {
    animation: pulse 2s infinite;
    animation-delay: 1s;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.social-buttons:hover .social-btn:not(:hover) {
    animation: float 2s ease-in-out infinite;
}

.social-buttons:hover .social-btn:nth-child(1) {
    animation-delay: 0s;
}

.social-buttons:hover .social-btn:nth-child(2) {
    animation-delay: 0.2s;
}

.social-buttons:hover .social-btn:nth-child(3) {
    animation-delay: 0.4s;
}

/* Icon-specific Animations */
.social-btn.instagram:hover i {
    animation: rotate 0.6s ease;
}

.social-btn.github:hover i {
    animation: bounce 0.6s ease;
}

.social-btn.linkedin:hover i {
    animation: shake 0.6s ease;
}

@keyframes rotate {
    0%, 100% {
        transform: scale(1.2) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1.2) translateY(0);
    }
    50% {
        transform: scale(1.2) translateY(-5px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: scale(1.2) translateX(0);
    }
    25% {
        transform: scale(1.2) translateX(-2px);
    }
    75% {
        transform: scale(1.2) translateX(2px);
    }
}

/* Glowing Border Effect */
.social-btn.glow {
    position: relative;
}

.social-btn.glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    z-index: -1;
    animation: glowing 2s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-btn:hover.glow::before {
    opacity: 1;
}

@keyframes glowing {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 400% 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* Dark Theme Adjustments */
[data-theme="dark"] .social-btn {
    border-color: var(--navbar-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .social-btn:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-buttons {
        gap: 15px;
        margin: 30px 0;
    }
    
    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .social-btn:hover {
        transform: translateY(-5px) scale(1.05);
    }
}

@media (max-width: 480px) {
    .social-buttons {
        gap: 12px;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Additional Entrance Animation */
.social-btn {
    opacity: 0;
    transform: scale(0.5);
    animation: socialEnter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.social-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.social-btn:nth-child(2) {
    animation-delay: 0.2s;
}

.social-btn:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes socialEnter {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 3rem 1rem;
        min-height: 100vh;
    }

    .intro {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }

    .typewriter {
        font-size: clamp(1rem, 4vw, 1.2rem);
        line-height: 1.4;
        margin-bottom: 2rem;
    }

    .profile-pic-container {
        width: clamp(150px, 40vw, 200px);
        height: clamp(150px, 40vw, 200px);
        margin: 0 auto 1.5rem;
        overflow: hidden;
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        min-width: 48px;
        min-height: 48px;
        z-index: 1000;
        cursor: pointer;
        pointer-events: auto;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--navbar-bg);
        width: 100%;
        height: calc(100vh - 60px);
        text-align: center;
        transition: left 0.3s ease-in-out;
        padding: 1.5rem 0;
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        pointer-events: none;
        box-sizing: border-box;
    }

    .nav-menu.active {
        left: 0;
        pointer-events: auto;
    }

    .nav-menu a {
        display: block;
        padding: 1.2rem;
        min-height: 44px;
        font-size: 1.1rem;
        text-decoration: none;
        color: inherit;
        pointer-events: auto;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    #theme-toggle, #resumeBtn {
        padding: 0.8rem;
        min-width: 48px;
        min-height: 48px;
        cursor: pointer;
        pointer-events: auto;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Skills Grid for Mobile */
    .skills-grid {
        display: grid;
        grid-template-columns: minmax(280px, 1fr); /* Single column for mobile */
        gap: 20px; /* Reduced gap for better spacing */
        justify-content: center; /* Center the grid items */
        margin-top: 20px; /* Reduced margin */
        padding: 0 1rem; /* Add padding to prevent edge overflow */
    }

    .skill-item {
        background: var(--navbar-bg);
        padding: 15px; /* Reduced padding for mobile */
        border-radius: 10px;
        border: 1px solid var(--navbar-border);
        backdrop-filter: blur(5px); /* Reduced blur for performance */
        transition: all 0.3s ease;
        opacity: 0;
        transform: translateY(20px); /* Simplified animation for mobile */
        perspective: none; /* Remove perspective for simpler rendering */
        width: 100%; /* Ensure full width within grid */
        max-width: 400px; /* Cap width for larger phones */
        margin: 0 auto; /* Center within grid cell */
        will-change: transform, opacity; /* Optimize animations */
    }

    .skill-item.slide-in {
        animation: skillSlideInMobile 0.6s ease-out forwards; /* Mobile-specific animation */
    }

    /* Remove left/right animations for mobile to keep centering */
    .skill-item:nth-child(odd).slide-in,
    .skill-item:nth-child(even).slide-in {
        animation: skillSlideInMobile 0.6s ease-out forwards;
    }

    .skill-item:hover {
        transform: translateY(-3px); /* Reduced hover effect */
        background: var(--hover-bg);
        border-color: var(--accent-color);
    }

    .skill-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px; /* Reduced for mobile */
    }

    .skill-name {
        font-size: 1rem; /* Slightly smaller for mobile */
        font-weight: 600;
        color: var(--text-color);
        transform: translateX(0); /* Remove initial translate for mobile */
        opacity: 1; /* Always visible to avoid delay */
        transition: none; /* Disable for performance */
    }

    .skill-item.slide-in .skill-name {
        transform: translateX(0);
        opacity: 1;
        transition: none;
    }

    .skill-percentage {
        font-size: 0.9rem; /* Smaller for mobile */
        font-weight: 600;
        color: var(--accent-color);
        transform: scale(1); /* Remove scale animation */
        opacity: 1;
        transition: none;
    }

    .skill-item.slide-in .skill-percentage {
        transform: scale(1);
        opacity: 1;
        transition: none;
    }

    .progress-bar {
        width: 100%;
        height: 6px; /* Thinner for mobile */
        background: var(--navbar-border);
        border-radius: 8px;
        overflow: hidden;
        position: relative;
        transform: scaleX(1); /* Remove scale animation */
        transition: none;
    }

    .skill-item.slide-in .progress-bar {
        transform: scaleX(1);
        transition: none;
    }

    .progress-fill {
        height: 100%;
        background: var(--accent-color);
        border-radius: 8px;
        position: relative;
        overflow: hidden;
        width: 0%;
        transition: width 1.5s ease-out; /* Faster for mobile */
    }

    /* Simplify shimmer and pulse for performance */
    .progress-fill::before {
        content: none; /* Disable shimmer on mobile */
    }

    .progress-fill::after {
        content: none; /* Disable pulse on mobile */
    }

    /* Simplify fill animation */
    .skill-item.animate .progress-fill {
        animation: fillProgressMobile 1.5s ease-out forwards;
    }

    /* Remove wave animation for mobile */
    .progress-bar::before {
        content: none;
    }

    /* Simplified mobile animation */
    @keyframes skillSlideInMobile {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fillProgressMobile {
        0% {
            width: 0%;
        }
        100% {
            width: var(--target-percentage); /* Use CSS variable or JS to set */
        }
    }

    /* Remove parallax floating elements for mobile */
    .skills-section::before,
    .skills-section::after {
        content: none;
    }
}