/* Custom Styles & Modern Animations for Sanjeev Choudhary Portfolio */

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.4);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-rose: #f43f5e;
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

html.light {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(99, 102, 241, 0.25);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --card-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.12);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6366f1;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.2);
}

/* Glowing Border Effect */
.glow-border {
  position: relative;
}
.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,0.5), rgba(6,182,212,0.5), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Animated Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #34d399 0%, #06b6d4 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Floating Animation */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes floatReverse {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes pulseSlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.08); }
}

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

.animate-float-reverse {
  animation: floatReverse 7s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulseSlow 5s ease-in-out infinite;
}

/* Particle Canvas Container */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Glowing Aura Background */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Badge Glow */
.badge-status {
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

/* Custom Cursor Follower */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: #38bdf8;
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.08s ease;
  transform: translate(-50%, -50%);
}

.cursor-outline {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease;
  transform: translate(-50%, -50%);
}

/* Typing Cursor */
.typing-cursor {
  display: inline-block;
  width: 2.5px;
  height: 1.15em;
  background-color: #38bdf8;
  margin-left: 3px;
  animation: blink 0.8s infinite;
  vertical-align: -0.15em;
  border-radius: 1px;
}

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

/* Filter Button Active State */
.filter-btn.active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  border-color: transparent;
}

/* Portfolio Card Zoom Effect */
.project-card .project-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-img {
  transform: scale(1.08);
}

/* Range input styling for cost estimator */
input[type=range] {
  accent-color: #6366f1;
}

@media (max-width: 768px) {
  .cursor-dot, .cursor-outline {
    display: none !important;
  }
}
/* Additional helper classes for multipage & Shopify */
.badge-shopify {
  background: rgba(150, 191, 67, 0.15);
  color: #96bf43;
  border: 1px solid rgba(150, 191, 67, 0.3);
}

.faq-item {
  transition: all 0.25s ease;
}

.faq-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-hero-mesh {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 80%);
}


/* ====================================================
   COMPREHENSIVE LIGHT THEME OVERRIDES
   ==================================================== */

html.light body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

/* Light Header & Navigation */
html.light header {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-bottom-color: rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03) !important;
}

html.light .desktop-nav-link {
  color: #475569 !important;
}

html.light .desktop-nav-link:hover,
html.light .desktop-nav-link.text-indigo-400 {
  color: #4f46e5 !important;
}

html.light #mobile-drawer {
  background-color: #ffffff !important;
  border-left-color: #e2e8f0 !important;
  color: #0f172a !important;
}

html.light #mobile-drawer .mobile-nav-link {
  color: #475569 !important;
}

html.light #mobile-drawer .mobile-nav-link:hover,
html.light #mobile-drawer .mobile-nav-link.text-indigo-400 {
  color: #4f46e5 !important;
}

html.light #theme-toggle,
html.light #theme-toggle-mobile,
html.light #mobile-menu-btn {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

/* Light Typography Overrides */
html.light h1,
html.light h2,
html.light h3,
html.light h4,
html.light h5,
html.light h6 {
  color: #0f172a !important;
}

html.light p {
  color: #475569 !important;
}

html.light .text-white {
  color: #0f172a !important;
}

html.light .text-slate-200,
html.light .text-slate-300 {
  color: #334155 !important;
}

html.light .text-slate-400 {
  color: #64748b !important;
}

html.light .text-slate-500 {
  color: #64748b !important;
}

/* Ensure gradient text still shines in light mode */
html.light .gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 50%, #9333ea 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Light Section Backgrounds - remove dark bars! */
html.light section {
  background-color: transparent !important;
  border-color: #e2e8f0 !important;
}

html.light .bg-slate-950,
html.light .bg-slate-950\/40,
html.light .bg-slate-950\/60,
html.light .bg-slate-950\/70,
html.light .bg-slate-950\/80 {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

html.light .page-hero-mesh {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 80%) !important;
}

/* Light Cards */
html.light .glass-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -2px rgba(0, 0, 0, 0.04) !important;
}

html.light .glass-card:hover {
  background-color: #ffffff !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
  box-shadow: 0 12px 30px -4px rgba(99, 102, 241, 0.15) !important;
}

/* Card inner panels & sub-boxes */
html.light .bg-slate-900,
html.light .bg-slate-900\/60,
html.light .bg-slate-900\/80,
html.light .bg-slate-900\/90 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html.light .border-slate-800,
html.light .border-slate-800\/60,
html.light .border-slate-800\/80,
html.light .border-slate-700,
html.light .border-slate-700\/80 {
  border-color: #e2e8f0 !important;
}

/* Code Terminal Card in Light Mode - retains sleek dark developer IDE look */
html.light .developer-code-card {
  background-color: #0f172a !important;
  border-color: #334155 !important;
}
html.light .developer-code-card * {
  color: revert !important;
}
html.light .developer-code-card .text-slate-300 {
  color: #cbd5e1 !important;
}
html.light .developer-code-card .text-slate-400 {
  color: #94a3b8 !important;
}
html.light .developer-code-card .text-white {
  color: #ffffff !important;
}
html.light .developer-code-card .bg-slate-900\/80 {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

/* Testimonial slider in Light Mode */
html.light .quote-mark {
  color: #6366f1 !important;
  opacity: 0.12 !important;
}

html.light .testimonial-slide p {
  color: #1e293b !important;
}

html.light #prev-testimonial,
html.light #next-testimonial {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

html.light #prev-testimonial:hover,
html.light #next-testimonial:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* CTA Banner in Light Mode */
html.light .glass-card.bg-gradient-to-tr {
  background: linear-gradient(135deg, #eef2ff 0%, #f0fdfa 100%) !important;
  border-color: #c7d2fe !important;
}

/* Inputs, Selects & Textareas in Light Mode */
html.light input,
html.light select,
html.light textarea {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.light input:focus,
html.light select:focus,
html.light textarea:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

html.light input::placeholder,
html.light textarea::placeholder {
  color: #94a3b8 !important;
}

/* Filter Buttons in Light Mode */
html.light .filter-btn {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

html.light .filter-btn:hover {
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  background-color: #f8fafc !important;
}

html.light .filter-btn.active {
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

/* FAQ Accordion in Light Mode */
html.light .faq-item {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html.light .faq-trigger span {
  color: #0f172a !important;
}

html.light .faq-answer {
  color: #475569 !important;
  border-color: #f1f5f9 !important;
}

/* Modal in Light Mode */
html.light #project-modal .glass-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html.light #project-modal #modal-desc {
  color: #475569 !important;
}

html.light #project-modal .bg-slate-900\/90 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html.light #project-modal #modal-results {
  color: #0f172a !important;
}

/* Footer in Light Mode */
html.light footer {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
}

html.light footer a {
  color: #475569 !important;
}

html.light footer a:hover {
  color: #4f46e5 !important;
}

/* Cursor follower in Light Mode */
html.light .cursor-dot {
  background-color: #6366f1;
}

html.light .cursor-outline {
  border-color: rgba(99, 102, 241, 0.4);
}
