/* ============================================
   Solar PRO — Premium Styles v2
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

::selection {
  background: rgba(245, 158, 11, 0.2);
  color: #92400e;
}

/* ============================================
   Text Gradient
   ============================================ */
.text-gradient {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 40%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Glass Card
   ============================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

/* ============================================
   Header
   ============================================ */
#header { background: transparent; }

#header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.header-logo-text { color: #fff; }
.nav-link { color: rgba(255, 255, 255, 0.6); }
.nav-link:hover { color: #fbbf24; background: rgba(255, 255, 255, 0.06); }
.header-phone { color: rgba(255, 255, 255, 0.8); }
.header-phone-text { color: rgba(255, 255, 255, 0.8); }
.header-menu-icon { color: #fff; }

#header.scrolled .header-logo-text { color: #020617; }
#header.scrolled .nav-link { color: #64748b; }
#header.scrolled .nav-link:hover { color: #f59e0b; background: rgba(245, 158, 11, 0.06); }
#header.scrolled .header-phone { color: #020617; }
#header.scrolled .header-phone-text { color: #020617; }
#header.scrolled .header-menu-icon { color: #020617; }

/* Active nav */
.nav-link.active-nav {
  color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.08);
}

/* ============================================
   Hero Mesh Gradient
   ============================================ */
.mesh-gradient {
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 80% at 50% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #020617 0%, #0f172a 50%, #020617 100%);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ============================================
   Ambient Orbs
   ============================================ */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  top: 10%;
  right: -10%;
  background: rgba(245, 158, 11, 0.06);
  animation: orb-drift 20s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  bottom: 5%;
  left: -8%;
  background: rgba(59, 130, 246, 0.05);
  animation: orb-drift 25s ease-in-out infinite reverse;
}

.orb-3 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 40%;
  background: rgba(139, 92, 246, 0.04);
  animation: orb-drift 22s ease-in-out infinite 5s;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ============================================
   Sun Animations
   ============================================ */
.sun-pulse {
  animation: sun-pulse 4s ease-in-out infinite;
}

@keyframes sun-pulse {
  0%, 100% { box-shadow: 0 0 60px rgba(245, 158, 11, 0.25); }
  50% { box-shadow: 0 0 100px rgba(245, 158, 11, 0.4), 0 0 200px rgba(245, 158, 11, 0.1); }
}

/* Sun rays */
.sun-rays {
  pointer-events: none;
}

.sun-rays .ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.3), transparent);
  transform-origin: 0 0;
  animation: ray-rotate 20s linear infinite;
}

.sun-rays .ray:nth-child(1) { transform: rotate(0deg); }
.sun-rays .ray:nth-child(2) { transform: rotate(45deg); }
.sun-rays .ray:nth-child(3) { transform: rotate(90deg); }
.sun-rays .ray:nth-child(4) { transform: rotate(135deg); }
.sun-rays .ray:nth-child(5) { transform: rotate(180deg); }
.sun-rays .ray:nth-child(6) { transform: rotate(225deg); }
.sun-rays .ray:nth-child(7) { transform: rotate(270deg); }
.sun-rays .ray:nth-child(8) { transform: rotate(315deg); }

@keyframes ray-rotate {
  from { opacity: 0.3; }
  50% { opacity: 0.8; }
  to { opacity: 0.3; }
}

/* ============================================
   Float Cards
   ============================================ */
.float-card {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ============================================
   Stat Cards
   ============================================ */
.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 158, 11, 0.15);
  transform: translateY(-2px);
}

/* ============================================
   Service Card Gradient
   ============================================ */
.service-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.service-card {
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
}

/* ============================================
   Package Tabs
   ============================================ */
.tab-btn {
  color: #94a3b8;
  background: transparent;
  cursor: pointer;
  border: none;
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.tab-btn:not(.active):hover {
  color: #475569;
  background: #f8fafc;
}

.tab-content {
  animation: tab-appear 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tab-appear {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   FAQ
   ============================================ */
.faq-item.active {
  border-color: rgba(245, 158, 11, 0.3) !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.06);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: #f59e0b !important;
}

.faq-answer {
  animation: faq-reveal 0.3s ease;
}

@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Calculator
   ============================================ */

/* Object-type toggle buttons */
.calc-type-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.875rem;
  background: #fff;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calc-type-btn:hover {
  border-color: #cbd5e1;
  color: #334155;
}

.calc-type-btn.active {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
}

.calc-type-btn.active svg {
  color: #3b82f6;
}

/* Range slider — track */
.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

/* Filled portion (set via JS with linear-gradient) */

/* Range slider — thumb (Webkit) */
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #3b82f6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.calc-range:active::-webkit-slider-thumb {
  transform: scale(1.2);
}

/* Range slider — thumb (Firefox) */
.calc-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #3b82f6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.calc-range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
}

/* Result cards */
.calc-result-card {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calc-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.calc-result-accent {
  background: #eff6ff;
  border-color: #dbeafe;
}

/* Chart bars */
.calc-bar {
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.4s; }
.delay-6 { transition-delay: 0.48s; }

/* ============================================
   Process Cards
   ============================================ */
.process-card {
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-card:hover {
  transform: translateY(-4px);
}

/* ============================================
   Project Cards
   ============================================ */
.project-card {
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Advantage Cards
   ============================================ */
.adv-card {
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.adv-card:hover {
  transform: translateY(-4px);
}

/* ============================================
   Form Select Arrow
   ============================================ */
select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 640px) {
  .reveal-up { transform: translateY(20px); }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1; transform: none; transition: none; }
  .sun-pulse, .float-card, .orb, .sun-rays .ray { animation: none; }
  html { scroll-behavior: auto; }
  .service-card, .package-card, .process-card, .project-card, .adv-card {
    transition: none;
  }
}
