/* Custom CSS for Mukeswar Reddy Bandlapalli Portfolio */

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

:root {
  --primary: #06b6d4;      /* Cyan */
  --secondary: #6366f1;    /* Indigo */
  --accent: #d946ef;       /* Fuchsia */
  --bg-dark: #030712;      /* Deep Slate/Black */
  --font-sans: 'Inter', sans-serif;
  --font-title: 'Outfit', sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: #f3f4f6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
}

/* Glassmorphism Styles */
.glass {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.glass-nav {
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-hover {
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-hover:hover {
  background: rgba(17, 24, 39, 0.7);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.15), 0 0 15px 1px rgba(6, 182, 212, 0.05);
  transform: translateY(-4px);
}

/* Gradient Text and Glows */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-text {
  text-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
}

/* Animations */
@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.15;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.25;
  }
}

.animate-pulse-glow {
  animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 75%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 6s infinite linear;
}

/* Glowing Border Gradient effect */
.border-gradient {
  position: relative;
}

.border-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3) 0%, rgba(99, 102, 241, 0.1) 50%, rgba(217, 70, 239, 0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.4);
}

/* Typing cursor */
.typing-cursor::after {
  content: '|';
  animation: blink 0.8s infinite;
}

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

/* Timeline Custom Styles */
.timeline-dot::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

/* Custom glow classes for interactive buttons */
.hover-shadow-glow:hover {
  box-shadow: 0 0 20px 2px rgba(6, 182, 212, 0.35);
  transform: scale(1.02);
}

.hover-shadow-glow-lg:hover {
  box-shadow: 0 0 30px 4px rgba(99, 102, 241, 0.4);
}

/* Input highlights */
.input-glow:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

/* Toast animations */
.toast-slide-in {
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.32, 1) forwards;
}

.toast-slide-out {
  animation: toast-out 0.3s cubic-bezier(0.16, 1, 0.32, 1) forwards;
}

@keyframes toast-in {
  from {
    transform: translateY(100%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes toast-out {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateY(100%) scale(0.9);
    opacity: 0;
  }
}
