/* Modern Developer Portfolio - Atikur Rahman
   Premium Theme & Dynamic Styles
*/

@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&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d121f;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.45);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  
  --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.35);
  --glow-indigo: 0 0 30px rgba(99, 102, 241, 0.35);
  
  --nav-bg: rgba(7, 9, 14, 0.75);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.3);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --accent-cyan: #0284c7;
  --accent-indigo: #4f46e5;
  --accent-purple: #7c3aed;
  --accent-emerald: #059669;
  
  --glow-cyan: 0 0 20px rgba(2, 132, 199, 0.2);
  --glow-indigo: 0 0 25px rgba(79, 70, 229, 0.2);
  
  --nav-bg: rgba(248, 250, 252, 0.85);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  line-height: 1.6;
}

/* Responsive Ultra-Wide Container System (Eliminates excessive side margins) */
.site-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 1540px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .site-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .site-container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1536px) {
  .site-container {
    max-width: 1680px;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }
}

@media (min-width: 1920px) {
  .site-container {
    max-width: 1820px;
    padding-left: 4.5rem;
    padding-right: 4.5rem;
  }
}

/* Custom Selection */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #38bdf8;
}

/* Code & Monospace font */
.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Background Animated Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

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

.glass-panel:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
}

.glass-nav {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

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

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

.text-gradient-emerald {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glow Badges */
.badge-glow {
  position: relative;
}
.badge-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, #06b6d4, #6366f1);
  z-index: -1;
  opacity: 0.4;
  filter: blur(6px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.6);
}

/* Pulse Animation for Status */
@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.4;
  }
}

.live-pulse {
  animation: pulseGlow 2s infinite ease-in-out;
}

/* 3D Float Animation */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.5deg);
  }
}

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

/* Terminal Styling */
.terminal-window {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .terminal-window {
  background: #111827;
  color: #f3f4f6;
}

.terminal-prompt {
  color: #10b981;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #38bdf8;
  vertical-align: middle;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Button Shimmer */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-25deg);
  transition: 0.75s;
}
.btn-shimmer:hover::before {
  left: 150%;
}

/* Interactive Image Switcher Card */
.profile-card-glow {
  position: relative;
}
.profile-card-glow::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(45deg, #06b6d4, #6366f1, #d946ef, #10b981);
  border-radius: 1.5rem;
  z-index: -1;
  filter: blur(14px);
  opacity: 0.45;
  transition: opacity 0.5s ease;
}
.profile-card-glow:hover::before {
  opacity: 0.75;
}

/* Tab button active state */
.tab-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
  border-color: #6366f1;
  color: #38bdf8;
}

/* Certificate Card Styles */
.cert-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cert-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 25px rgba(99, 102, 241, 0.2);
}
.cert-img-container {
  overflow: hidden;
  position: relative;
}
.cert-img-container img {
  transition: transform 0.5s ease;
}
.cert-card:hover .cert-img-container img {
  transform: scale(1.05);
}

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}
#toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Project Card Image Container & Browser Mockup */
.project-mockup-frame {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #060913;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-mockup-frame {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(6, 182, 212, 0.15);
}
.project-mockup-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-mockup-frame:hover img {
  transform: scale(1.04);
}

/* Hero Terminal Command Pill */
.hero-cmd-pill {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.75) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.hero-cmd-pill:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(6, 182, 212, 0.2);
}


