/* VOLTIX ENERGY - Custom Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --color-primary-dark: #0B132B;
  --color-slate-dark: #0F172A;
  --color-slate-card: #1E293B;
  --color-emerald: #10B981;
  --color-emerald-hover: #059669;
  --color-amber: #F59E0B;
  --color-amber-hover: #D97706;
  --color-tech-bg: #F8FAFC;
  --color-tech-border: #E2E8F0;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-sans);
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: #1E293B;
  background-color: #0F172A;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Glassmorphism & Overlays */
.glass-nav {
  background: rgba(11, 19, 43, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-dark {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Hero Glows */
.hero-glow-green {
  position: absolute;
  width: 500px;
  max-width: 100vw;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  overflow: hidden;
}

.hero-glow-blue {
  position: absolute;
  width: 600px;
  max-width: 100vw;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0) 70%);
  filter: blur(70px);
  pointer-events: none;
  overflow: hidden;
}

/* Custom Range Slider */
input[type=range].slider-solar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 9999px;
  background: linear-gradient(to right, #10B981, #0EA5E9);
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type=range].slider-solar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid #10B981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type=range].slider-solar::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.65);
}

input[type=range].slider-solar::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid #10B981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Subtle Technical Grid Background */
.bg-grid-tech {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.bg-grid-tech-light {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

/* Floating WhatsApp Pulse Animation */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.25);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

.animate-pulse-ring {
  animation: pulse-ring 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

/* Shimmer animation for metrics */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #10B981 0%, #34D399 50%, #6EE7B7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-solar {
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 50%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Card hover micro-transitions */
.project-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(11, 19, 43, 0.18);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

::-webkit-scrollbar-track {
  background: #0B132B;
}

::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 5px;
  border: 2px solid #0B132B;
}

::-webkit-scrollbar-thumb:hover {
  background: #10B981;
}

/* Accessibility Focus Rings */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #10B981;
  outline-offset: 2px;
}

/* Horizontal Portfolio Carousel */
#portfolio-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  user-select: none;
  -webkit-user-select: none;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background-color: rgba(148, 163, 184, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  width: 28px;
  background-color: #10B981;
}

.carousel-dot:hover:not(.active) {
  background-color: rgba(148, 163, 184, 0.6);
}

