
:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --dark: #0f172a;
    --light: #f8fafc;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    color: var(--light);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}


#threejs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
#threejs-container canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}


#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

/* Keep content above background */
 nav, section, footer {
    position: relative;
    z-index: 10;
}

 .gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
} 

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.floating {
    animation: floating 6s ease-in-out infinite;
}
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.scroll-indicator {
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.skill-bar {
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.hover-scale {
    transition: transform 0.3s ease;
}
.hover-scale:hover {
    transform: scale(1.05);
}
.code-line {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.code-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.aspect-w-4 {
  position: relative;
}
.aspect-w-4::before {
  content: "";
  display: block;
  padding-bottom: 75%; /* 4:3 aspect ratio */
}
.glass-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}



#mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: right 0.3s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
  }


  #mobile-menu.show {
    right: 0;
  }

.mobile-nav-item {
    position: relative; /* Needed for pseudo-element */
    display: block;
    padding: 12px 20px;
    color: white;
    font-size: 18px;
    text-decoration: none;
    border-left: 4px solid transparent;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}


.mobile-nav-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0));
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; 
}

.mobile-nav-item:hover::before {
    opacity: 1; 
}

.mobile-nav-item:hover {
    border-left-color: #8B5CF6;                  
    background: rgba(139, 92, 246, 0.1);        
    transform: translateX(12px) scale(1.05);    
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2); 
    transition: all 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}


  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  #close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
  }

  #close-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
  }

/* Mobile responsive */
@media (max-width: 768px) {
   

    .hero-content {
        padding: 2rem 1rem;
    }

    .glass-card {
        margin: 1rem;
        padding: 1.5rem;
    }

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

     /*   Hex  hero sec */
  
   .hexagon-button {
  position: relative;
  width: 160px;
  height: 92px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-width: 1px;
}
.hexagon-button:hover {
  transform: translateY(-3px);
}
.hexagon-content {
  transform: translateY(2px);
  text-align: center;
  padding: 0 20px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 20s linear infinite;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}
.relative:hover img {
  animation: glitch 0.5s linear infinite;
}

@keyframes fade-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fade-up 1.2s ease-out forwards;
  animation-delay: 0.6s;
}

    /* end hero sec*/