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

:root {
  /* Premium Dark Theme Colors */
  --bg-body: #030712; /* deeper slate */
  --bg-surface: rgba(17, 24, 39, 0.7); /* translucent surface */
  --bg-surface-hover: rgba(31, 41, 55, 0.8);
  --text-primary: #f9fafb;
  --text-muted: #9ca3af;
  --accent-color: #10b981; /* Emerald */
  --accent-hover: #34d399;
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #3b82f6 100%); /* Emerald to Blue */
  --gradient-text: linear-gradient(to right, #34d399, #3b82f6, #8b5cf6);

  /* Borders & Shadows */
  --border-color: rgba(255, 255, 255, 0.08);
  --glow-accent: 0 0 30px rgba(16, 185, 129, 0.3);
  --glow-purple: 0 0 30px rgba(139, 92, 246, 0.3);
  
  /* Glassmorphism */
  --glass-bg: rgba(17, 24, 39, 0.45);
  --glass-border: 1px solid rgba(255,255,255,0.08);

  /* Bootstrap Overrides Helper */
  --bs-body-bg: var(--bg-body);
  --bs-body-color: var(--text-primary);
  --bs-font-sans-serif: 'Outfit', sans-serif;
}

body {
  font-family: var(--bs-font-sans-serif);
  background-color: var(--bg-body);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-accent {
  color: var(--accent-color) !important;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* Glassmorphism Utility */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Animations */
.float-anim {
  animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Glowing Background Blobs */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -2;
  opacity: 0.4;
  animation: pulse 8s alternate infinite;
}
.bg-blob-1 {
  width: 400px; height: 400px;
  background: rgba(16, 185, 129, 0.3);
  top: -10%; left: -10%;
}
.bg-blob-2 {
  width: 500px; height: 500px;
  background: rgba(59, 130, 246, 0.2);
  bottom: -10%; right: -5%;
  animation-delay: 2s;
}
.bg-blob-3 {
  width: 300px; height: 300px;
  background: rgba(139, 92, 246, 0.2);
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

@keyframes pulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
  100% { transform: scale(1.1) translate(20px, -20px); opacity: 0.5; }
}

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

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

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* Navbar */
.navbar {
  background-color: rgba(10, 10, 10, 0.8) !important;
  /* Glass effect base */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--text-primary) !important;
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color) !important;
}

.navbar-toggler {
  border: none;
  color: var(--text-primary);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Utility: Spacing */
section {
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

#home-section {
  padding-top: 6rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  section {
    padding: 6rem 0;
  }
  
  #home-section {
    padding-top: 8rem;
    padding-bottom: 4rem;
  }
}

/* Cards (Projects, Services, Experience) */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), var(--glow-accent);
  border-color: rgba(16, 185, 129, 0.4);
}

.card-img-top {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

#projects-section .card {
  max-width: 320px;
  margin: 0 auto;
}

.card-title {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-text {
  color: var(--text-muted);
}

/* Buttons */
.btn-primary {
  background: var(--accent-gradient);
  border: none;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  color: white;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
  color: white;
}

.btn-primary:disabled {
  background-color: #404040;
  color: #a3a3a3;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

/* Forms */
.form-control {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.8rem;
  border-radius: 8px;
}

.form-control:focus {
  background-color: var(--bg-surface-hover);
  border-color: var(--accent-color);
  color: var(--text-primary);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-check-input {
  background-color: var(--bg-surface);
  border-color: var(--border-color);
}

.form-check-input:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Footer */
footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
}

.social-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.social-icon:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-3px);
}

/* Custom Badges */
.badge-ai {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  color: white;
  font-size: 0.7rem;
  padding: 0.4em 0.8em;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(217, 70, 239, 0.4);
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.badge-soon {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-size: 0.7rem;
  padding: 0.4em 0.8em;
  border-radius: 50px;
  vertical-align: middle;
  font-weight: 600;
}

/* Image Wrapper for Hero */
.hero-img-wrapper {
  position: relative;
  display: inline-block;
  margin: 2rem auto 0;
  z-index: 1;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  aspect-ratio: 1/1;
}

.hero-img-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 15px);
  height: calc(100% + 15px);
  background: var(--accent-gradient);
  border-radius: 50% !important;
  z-index: -1;
  filter: blur(10px);
  opacity: 0.6;
  animation: glow-pulse 4s infinite alternate;
}

@keyframes glow-pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.7; }
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 30px rgba(0,0,0,0.4);
  display: block;
}

@media (min-width: 992px) {
  .hero-img-wrapper {
    margin-top: 0;
    width: 320px;
    height: 320px;
  }
  .hero-img-wrapper::after {
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    filter: blur(20px);
    border-radius: 50%;
  }
}

/* ===== Custom Notification Prompt ===== */
.notif-prompt-overlay {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.notif-prompt-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.notif-prompt-overlay.hiding {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  pointer-events: none;
}

.notif-prompt-card {
  position: relative;
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.75rem 1.5rem 1.5rem;
  width: 340px;
  max-width: calc(100vw - 2rem);
  text-align: center;
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(16, 185, 129, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Close Button */
.notif-prompt-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.notif-prompt-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Bell Icon */
.notif-prompt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-gradient);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: white;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.3);
  animation: bellRing 2s ease-in-out 0.5s 1;
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-12deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-8deg); }
  50% { transform: rotate(4deg); }
  60% { transform: rotate(0deg); }
}

/* Title */
.notif-prompt-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

/* Body Text */
.notif-prompt-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

/* Action Buttons */
.notif-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notif-prompt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
}

.notif-prompt-btn-allow {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.notif-prompt-btn-allow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

.notif-prompt-btn-dismiss {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-prompt-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Mobile: bottom-center, full width */
@media (max-width: 480px) {
  .notif-prompt-overlay {
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0 0.75rem 0.75rem;
  }

  .notif-prompt-card {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .notif-prompt-icon {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }

  .notif-prompt-title {
    font-size: 1.05rem;
  }

  .notif-prompt-text {
    font-size: 0.825rem;
  }
}