/* ===== Solvex Engineers — Custom Styles ===== */
/* Brand Colors: Blue #1A56DB | Red #C62828 | Dark #1B1B1B */

/* --- CSS Custom Properties --- */
:root {
  --primary: #1A56DB;
  --primary-dark: #1545AF;
  --primary-light: #3B72E8;
  --accent: #C62828;
  --accent-light: #E53935;
  --dark: #1B1B1B;
  --light: #F8FAFC;
}

/* --- Base --- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--dark);
  overflow-x: hidden;
  font-size: 1.1rem;
  line-height: 1.7;
}

p, .text-justify { 
  text-align: justify; 
  text-justify: inter-word;
  hyphens: auto;
}
.text-center p, .section-subtitle { text-align: center; }
.text-left p { text-align: left; }
footer p { text-align: left; }
footer .footer-desc {
  text-align: justify;
  text-justify: inter-word;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* --- Navbar --- */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.nav-link {
  position: relative;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 1px;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: var(--primary);
}

/* --- Hero Section --- */
.hero-gradient {
  background: linear-gradient(135deg, #050d1a 0%, #0a1a33 25%, #102a52 50%, #1A56DB 100%);
  position: relative;
  overflow: hidden;
}
.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(26, 86, 219, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(198, 40, 40, 0.1) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-gradient-light {
  background: linear-gradient(135deg, #EBF0FB 0%, #F8FAFC 50%, #FBE9E9 100%);
  position: relative;
}

/* Floating orbs decoration */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  pointer-events: none;
}

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

.glass-card-light {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
}

/* --- Product Card --- */
.product-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
  border-radius: 1rem;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(26, 86, 219, 0.15);
}
.product-card .product-icon {
  transition: transform 0.4s ease, background-color 0.4s ease;
}
.product-card:hover .product-icon {
  transform: scale(1.1);
  background-color: var(--primary);
  color: white;
}
.product-card:hover .product-icon svg {
  stroke: white;
}
.product-card .product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 86, 219, 0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.product-card:hover .product-overlay {
  opacity: 1;
}

/* --- Stat Counter --- */
.stat-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 86, 219, 0.5);
}

/* --- Section Headings --- */
.section-subtitle {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}
.section-title span {
  color: var(--primary);
}

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 86, 219, 0.35);
}
.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  border: 2px solid white;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  cursor: pointer;
}
.btn-outline:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline-dark {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  cursor: pointer;
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 86, 219, 0.35);
}

.btn-accent {
  background: var(--accent);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}
.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(198, 40, 40, 0.35);
}

/* --- Timeline (About Page) --- */
.timeline {
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 2.5rem;
}
.timeline-item:nth-child(odd) {
  margin-left: auto;
  text-align: left;
}
.timeline-item:nth-child(even) {
  text-align: right;
}
.timeline-dot {
  position: absolute;
  top: 2rem;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.2);
  z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-dot {
  left: -9px;
}
.timeline-item:nth-child(even) .timeline-dot {
  right: -9px;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 3.5rem;
    padding-right: 1rem;
    text-align: left !important;
  }
  .timeline-dot {
    left: 11px !important;
    right: auto !important;
  }
}

/* --- Service Process Steps --- */
.process-connector {
  position: absolute;
  top: 3rem;
  right: -2rem;
  width: 4rem;
  height: 2px;
  background: linear-gradient(to right, var(--primary), rgba(26, 86, 219, 0.2));
}

/* --- Back to Top --- */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s ease;
  z-index: 40;
  box-shadow: 0 4px 15px rgba(26, 86, 219, 0.3);
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.4);
}

/* --- Contact Form Inputs --- */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  background: white;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}
.form-input::placeholder {
  color: #9CA3AF;
}

/* --- Loading Screen --- */
#loader {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #F3F4F6;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* --- Feature / Service Card --- */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 1rem;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

/* --- Category Filter Buttons --- */
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  outline: none;
}
.filter-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* --- Product Image Cards & Containers --- */
.product-img-card,
.product-img-box {
  height: 220px !important;
  min-height: 220px !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  background-color: #f3f4f6 !important;
  display: block !important;
}
.product-img-card img,
.product-img-box img,
.product-card img {
  width: 100% !important;
  height: 100% !important;
  min-height: 220px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}
.product-card:hover img {
  transform: scale(1.05) !important;
}

/* --- Phone Number Block --- */
.phone-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.phone-block a {
  display: inline-block;
  white-space: nowrap;
  color: inherit;
  transition: color 0.2s ease;
}
.phone-block a:hover {
  color: var(--primary-light);
}

/* --- Keyframe Animations --- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(26, 86, 219, 0.2); }
  50% { box-shadow: 0 0 40px rgba(26, 86, 219, 0.4); }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* --- Mobile Responsive --- */
@media (max-width: 640px) {
  html {
    font-size: 15px;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .section-subtitle {
    font-size: 0.85rem;
  }
  .page-banner {
  background: linear-gradient(135deg, #0a1a33 0%, #103483 40%, #1A56DB 100%);
  position: relative;
  overflow: hidden;
}
  .page-banner h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  body {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  footer .grid {
    grid-template-columns: 1fr;
  }
  footer li span {
    font-size: 0.875rem;
    word-break: break-word;
  }
}

/* --- Page Banner (Inner Pages) --- */
.page-banner {
  background: linear-gradient(135deg, #050d1a 0%, #0a1a33 40%, #1A56DB 100%);
  position: relative;
  overflow: hidden;
  padding: 10rem 0 5rem;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* --- Testimonial Card --- */
.testimonial-card {
  position: relative;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-size: 5rem;
  color: rgba(26, 86, 219, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

/* --- Accordion (Product Details) --- */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-content.open {
  max-height: 500px;
}

/* --- Misc Utilities --- */
.text-balance {
  text-wrap: balance;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Decorative red bar accent */
.red-bar {
  width: 3rem;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* --- Lazy Loading Helper --- */
img[loading='lazy'] {
  background: #f3f4f6;
}



/* --- Improved Mobile Responsiveness --- */
@media (max-width: 640px) {
  .hero-gradient {
    padding-top: 5rem !important;
  }
  .hero-gradient h1 {
    font-size: 2.25rem !important;
    line-height: 1.2 !important;
  }
  .hero-gradient .space-y-4 p {
    font-size: 0.875rem !important;
  }
  .glass-card {
    display: none;
  }
  .page-banner {
    padding-top: 5rem !important;
    padding-bottom: 2rem !important;
  }
  .page-banner h1 {
    font-size: 1.75rem !important;
  }
}

@media (max-width: 380px) {
  .hero-gradient h1 {
    font-size: 1.875rem !important;
  }
}
