/* ==========================================================================
   DEVELOPER PORTFOLIO - CUSTOM STYLES (style.css)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  font-family: 'Plus Jakarta Sans', sans-serif;
  scroll-behavior: smooth;
}

/* --- Theme Variables --- */
:root {
  --neon-cyan: #06b6d4;
  --neon-purple: #a855f7;
  --neon-pink: #ec4899;
}

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

::-webkit-scrollbar-track {
  background: #020617; /* slate-950 */
}
html.light::-webkit-scrollbar-track {
  background: #f8fafc; /* slate-50 */
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--neon-purple), var(--neon-pink));
}

/* --- Loader Styles --- */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #020617;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.light .loader-wrapper {
  background: #f8fafc;
}

/* --- Glassmorphism Styles --- */
.glass-panel {
  background: rgba(15, 23, 42, 0.45); /* Slate-900 with opacity */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.light .glass-panel {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.glass-nav {
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.light .glass-nav {
  background: rgba(248, 250, 252, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.glass-card {
  background: rgba(30, 41, 59, 0.35); /* Slate-800 with opacity */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.light .glass-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.glass-card:hover {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(6, 182, 212, 0.3); /* cyan-500 with opacity */
  transform: translateY(-8px);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.15);
}

.light .glass-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(168, 85, 247, 0.2); /* purple-500 with opacity */
  box-shadow: 0 20px 40px -15px rgba(168, 85, 247, 0.1);
}

/* --- Animated Glowing Text --- */
.text-gradient {
  background: linear-gradient(135deg, #22d3ee 0%, #a855f7 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Glowing Border Animation --- */
.glowing-border-container {
  position: relative;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink), var(--neon-cyan));
  background-size: 300% 300%;
  animation: borderGlow 6s linear infinite;
}

/* --- Custom Keyframe Animations --- */
@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-reverse {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(12px) rotate(-3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

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

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Animation Classes --- */
.animate-float-slow {
  animation: float 8s ease-in-out infinite;
}

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

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

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* --- Grid Dot Pattern Background --- */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
}
.light .bg-grid-pattern {
  background-image: 
    radial-gradient(circle, rgba(15,23,42,0.04) 1px, transparent 1px);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-down {
  transform: translateY(-40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-scale {
  transform: scale(0.92);
}

/* Activated State via IntersectionObserver */
.reveal.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Delay modifiers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Typing Cursor Animation */
.typing-cursor::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
  color: var(--neon-cyan);
  font-weight: 500;
  margin-left: 2px;
}

@keyframes blink {
  from, to { color: transparent }
  50% { color: var(--neon-cyan) }
}

/* --- Custom Testimonial Slider Utilities --- */
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Interactive Contact Form Styles --- */
.contact-input {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.light .contact-input {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
  background: rgba(15, 23, 42, 0.6);
}

.light .contact-input:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.1);
  background: rgba(255, 255, 255, 1);
}

/* --- Back To Top Progress Button --- */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.light .back-to-top-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  transform: scale(1.1);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.back-to-top-btn svg.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring__circle {
  transition: stroke-dashoffset 0.15s linear;
  stroke: url(#cyan-purple-grad);
  stroke-linecap: round;
}

/* Custom Checkbox Toggle for Theme */
.theme-switch {
  cursor: pointer;
  width: 52px;
  height: 28px;
  border-radius: 9999px;
  position: relative;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
}

.light .theme-switch {
  background: rgba(226, 232, 240, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.light .theme-switch-thumb {
  transform: translateX(24px);
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

/* --- Project Filter Buttons Custom Styling --- */
.project-filter-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.project-filter-btn.active {
  border-color: var(--neon-cyan);
  background-color: rgba(6, 182, 212, 0.1);
  color: var(--neon-cyan);
}

.project-filter-btn.inactive {
  border-color: rgba(0, 0, 0, 0.08);
  color: #475569; /* slate-600 */
}

.dark .project-filter-btn.inactive {
  border-color: rgba(255, 255, 255, 0.05);
  color: #94a3b8; /* slate-400 */
}

.project-filter-btn.inactive:hover {
  color: var(--neon-cyan);
  border-color: rgba(6, 182, 212, 0.3);
  background-color: rgba(6, 182, 212, 0.05);
}

.dark .project-filter-btn.inactive:hover {
  color: var(--neon-cyan);
  border-color: rgba(6, 182, 212, 0.3);
  background-color: rgba(6, 182, 212, 0.05);
}

/* --- Navigation Links Custom Styling --- */
.nav-link {
  color: #475569; /* slate-600 */
  transition: color 0.3s ease;
}

.dark .nav-link {
  color: #94a3b8; /* slate-400 */
}

.nav-link.active, .nav-link:hover {
  color: #0f172a; /* slate-900 */
}

.dark .nav-link.active, .dark .nav-link:hover {
  color: #ffffff; /* white */
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  transition: width 0.3s ease;
}

.nav-link.active::after, .nav-link:hover::after {
  width: 100%;
}

