/* Kausik Challapalli Portfolio - Complete Styles */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #000000;
  color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Gradient Background */
.gradient-bg {
  background-image: radial-gradient(circle at 20% 50%, rgba(88, 28, 135, 0.03) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(109, 40, 217, 0.03) 0%, transparent 50%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c3aed, #6d28d9);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8b5cf6, #7c3aed);
}

/* Navigation Styles */
.nav-link {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #d1d5db; /* gray-300 */
}

.nav-link:hover {
  color: #7c3aed; /* violet-600 */
  background: rgba(124, 58, 237, 0.1);
}

.nav-link.active {
  color: #7c3aed; /* violet-600 */
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Glass Effect */
.glass-effect {
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2);
}

/* Skill Bar Animation */
.skill-bar {
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.skill-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.15), transparent 55%);
  border-radius: inherit;
  pointer-events: none;
}

/* Button Styles */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::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;
}

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

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease-out;
}

.animate-slideUp {
  animation: slideUp 0.6s ease-out;
}

/* Selection */
::selection {
  background-color: rgba(124, 58, 237, 0.3);
  color: #fff;
}

::-moz-selection {
  background-color: rgba(124, 58, 237, 0.3);
  color: #fff;
}

/* Focus States */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu {
    display: block;
  }
  
  .desktop-menu {
    display: none;
  }
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none;
  }
  
  .desktop-menu {
    display: flex;
  }
}

/* Utility Classes */
.transition-all {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-lift:hover {
  transform: translateY(-4px);
}


/* Mobile Hamburger Menu - CSS Only (No JavaScript) */
.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 100;
}

.hamburger-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(12px);
  border-left: 1px solid rgba(124, 58, 237, 0.3);
  transition: right 0.3s ease;
  z-index: 99;
  overflow-y: auto;
  padding-top: 80px;
}

/* When checkbox is checked, slide in sidebar */
#menu-toggle:checked ~ nav .mobile-sidebar {
  right: 0;
}

/* Animate hamburger to X */
#menu-toggle:checked ~ nav label .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

#menu-toggle:checked ~ nav label .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ nav label .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}