/* Google Fonts are imported in HTML, setting base font here */
:root {
  --primary-color: #00ff9c;
  --bs-primary: #00ff9c;
  --bs-primary-rgb: 0, 255, 156;
  --secondary-color: #6c757d;
  --dark-bg: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  background-color: #f8f9fa;
  color: #333;
}

.font-outfit {
  font-family: 'Outfit', sans-serif;
}

.tracking-wide {
  letter-spacing: 2px;
}

/* Navbar Transitions */
.transition-bg {
  /* Using cubic-bezier for a buttery smooth bounce-free slide */
  transition: all 0.35s cubic-bezier(0.33, 1, 0.68, 1);
  transform: translateY(0);
}

/* Smarter Hide on Down Scroll */
.nav-hidden {
  transform: translateY(-100%) !important;
  pointer-events: none;
}

/* Background Video and Overlay */
.back-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(15,23,42,0.6) 100%);
  z-index: -1;
}

/* Gradients and Text */
.gradient-text {
  background: linear-gradient(90deg, #0d6efd, #0dcaf0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Section Titles */
.section-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 4px;
  background: var(--primary-color);
  bottom: -10px;
  left: 25%;
  border-radius: 2px;
}

.section-title-white::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 4px;
  background: var(--primary-color);
  bottom: -10px;
  left: 25%;
  border-radius: 2px;
}

/* Animations and Hover Effects */
.transition-hover {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.transition-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

.btn-hover-effect {
  transition: all 0.3s ease;
}

.btn-hover-effect:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3) !important;
}

.slide-up-anim {
  animation: slideUp 0.8s ease backwards;
}

.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section Enhancements */
.blob-bg {
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(13,110,253,0.1) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
  animation: pulseBlob 6s infinite alternate;
}

@keyframes pulseBlob {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

/* Glassmorphism elements */
.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.glassform {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Form Styles */
.form-dark .form-control {
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 2px solid rgba(255,255,255,0.2);
}

.form-dark .form-control:focus {
  background-color: transparent;
  color: white;
  border-bottom-color: var(--primary-color);
  box-shadow: none;
}

.form-dark label {
  color: rgba(255,255,255,0.6);
}

/* Hobby Cards Customization */
.hobby-card {
  border: 1px solid rgba(255,255,255,0.1) !important;
}
.hobby-card:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: var(--primary-color) !important;
}

.card-bg-icon {
  right: -20px;
  bottom: -20px;
  font-size: 8rem;
  color: rgba(255,255,255,0.05);
  transform: rotate(-15deg);
  transition: all 0.4s ease;
}

.hobby-card:hover .card-bg-icon {
  transform: rotate(0) scale(1.1);
  color: rgba(255,255,255,0.1);
}

/* Social Icons - Unified Cyber Green Minimal Glow */
.social-icon {
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-icon:hover {
  background-color: rgba(0, 255, 156, 0.15) !important;
  color: #00ff9c !important;
  border-color: #00ff9c !important;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 255, 156, 0.4);
}

/* Misc overrides */
.hover-text-white:hover {
  color: white !important;
}

/* Glassmorphism Button Enhancement */
.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@supports not (backdrop-filter: blur(12px)) {
  .btn-glass {
    background: rgba(13, 110, 253, 0.85); /* Primary color fallback */
  }
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2), inset 0 0 15px rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6) !important;
}

/* -------------------------------------
   Futuristic / Terminal Hero Aesthetics (Minimal Cyber-Green)
-------------------------------------- */

/* 1. Minimal Fade & Flicker for Greeting */
.hero-greeting {
  color: rgba(0, 255, 156, 0.6) !important;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  opacity: 0;
  animation: subtleFadeFlicker 4s infinite 1s;
}

@keyframes subtleFadeFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 0.8; }
  20%, 24%, 55% { opacity: 0.4; }
}

/* 2. Glitch Element (Minimal) */
.glitch-element {
  color: #00ff9c !important; /* Minimal Cyber Green */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif !important;
  text-shadow: 0 0 8px rgba(0, 255, 156, 0.3);
  animation: minimalGlitchColor 8s infinite;
}

/* Single pseudo-element for minimal distortion */
.glitch-element::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  color: #00ff9c;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.9;
  z-index: -1;
  animation: minimalGlitchTear 6s infinite linear alternate-reverse;
}

/* Clean, rare horizontal tearing */
@keyframes minimalGlitchTear {
  0%, 94% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: translate(0); opacity: 0; }
  95% { clip-path: polygon(0 40%, 100% 40%, 100% 50%, 0 50%); transform: translate(-4px, 0); opacity: 1; }
  96% { clip-path: polygon(0 40%, 100% 40%, 100% 50%, 0 50%); transform: translate(4px, 0); opacity: 1; }
  98% { clip-path: polygon(0 80%, 100% 80%, 100% 85%, 0 85%); transform: translate(-2px, 0); opacity: 1; text-shadow: -2px 0 rgba(0, 255, 156, 0.6); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: translate(0); opacity: 0; }
}

/* Rare flicker */
@keyframes minimalGlitchColor {
  0%, 95%, 100% { opacity: 1; filter: contrast(1); }
  97% { opacity: 0.8; filter: contrast(1.2) brightness(1.3); }
}

/* 3. Typing Effect / Terminal Output */
.typing-container {
  display: inline-flex;
  align-items: center;
  color: rgba(0, 255, 156, 0.8) !important;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

.typing-text {
  overflow: hidden;
  white-space: nowrap;
  border-right: none;
  width: 0;
  animation: typing 2.5s steps(25, end) forwards 1.2s;
}

.blinking-cursor {
  display: inline-block;
  opacity: 1;
  animation: blinkCursor 0.8s step-end infinite;
  color: #00ff9c;
  margin-left: 4px;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* -------------------------------------
   Premium Developer Navigation
-------------------------------------- */

/* Navbar Container */
.glass-nav-scrolled {
  background: rgba(15, 23, 42, 0.85) !important; /* Matches dark-bg */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 255, 156, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.3s ease;
}

/* Brand Logo */
.nav-branded-logo {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: 2px;
  position: relative;
  transition: all 0.3s ease;
}
.nav-branded-logo:hover {
  color: #00ff9c !important;
  text-shadow: 0 0 10px rgba(0, 255, 156, 0.4);
}

/* Navigation Links */
.nav-custom-link {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8) !important;
  position: relative;
  padding: 0.5rem 0 !important;
  margin: 0 1.25rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-custom-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #00ff9c;
  transition: width 0.3s ease, box-shadow 0.3s ease;
}

.nav-custom-link:hover, .nav-custom-link.active {
  color: #00ff9c !important;
  transform: translateY(-2px);
}

.nav-custom-link:hover::after, .nav-custom-link.active::after {
  width: 100%;
  box-shadow: 0 0 8px rgba(0, 255, 156, 0.6);
}

/* Mobile Toggler Base Restyle */
.navbar-toggler {
  transition: all 0.3s ease;
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 255, 156, 0.25) !important;
}

/* Better Mobile Menu Collapse Overlay */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 156, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease-in-out;
  }
  .nav-custom-link {
    margin: 0.5rem 0;
    display: inline-block;
  }
}