/* Base styles and variables */
:root {
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.05);
}

body {
  margin: 0;
  min-height: 100vh;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.glass-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Canvas particle network */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Dot grid overlay */
.dot-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Dynamic Background Mesh / Blobs */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background-image:
    radial-gradient(at 40% 20%, rgba(200, 200, 200, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(220, 220, 220, 0.15) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(180, 180, 180, 0.15) 0px, transparent 50%);
  filter: blur(80px);
  pointer-events: none;
  will-change: auto;
}

.blob-1 {
  position: fixed;
  top: 10%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: rgba(200, 200, 200, 0.15);
  border-radius: 50%;
  filter: blur(100px);
  animation: float 15s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.blob-2 {
  position: fixed;
  bottom: 10%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: rgba(150, 150, 150, 0.10);
  border-radius: 50%;
  filter: blur(120px);
  animation: float 20s ease-in-out infinite reverse;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Pause animations when tab not visible */
@media (prefers-reduced-motion: reduce) {
  .blob-1, .blob-2 { animation: none; }
  .fade-in-section { transition: none; opacity: 1; transform: none; }
}

/* Scroll Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Tech Stack Marquee */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 160px;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}
.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}
.marquee-track-1,
.marquee-track-2 {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  width: max-content;
  will-change: transform;
  padding: 8px 0;
}
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: default;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
  font-family: 'Poppins', sans-serif;
}
.tech-badge:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border-color: #9ca3af;
}
.tech-badge i {
  font-size: 1.2rem;
  color: #374151;
}
.tech-badge-dark {
  background: #0f0f0f;
  border-color: #2a2a2a;
  color: #f3f4f6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.tech-badge-dark:hover {
  border-color: #555;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.tech-badge-dark i {
  color: #9ca3af;
}

/* FAQ Accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

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

::-webkit-scrollbar-track {
  background: #f9fafb;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
