/* ============================================
   Wilsonii Web Services - Main Stylesheet
   ============================================ */

:root {
  --accent: #e85d26;
  --accent-hover: #d14a17;
  --accent-light: rgba(232, 93, 38, 0.1);
  --dark: #0f1923;
  --dark-card: #162533;
  --dark-border: #1e3448;
  --blue: #2563eb;
  --green: #16a34a;
  --orange: #ea580c;
  --purple: #7c3aed;
  --teal: #0d9488;
  --red: #dc2626;
  --body-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --heading-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Base ---- */
body {
  font-family: var(--body-font);
  color: #1e293b;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

.text-accent {
  color: var(--accent) !important;
}

.section-padding {
  padding: 100px 0;
}

/* ---- Buttons ---- */
.btn-accent {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 93, 38, 0.3);
}

.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-outline-accent:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 93, 38, 0.3);
}

.btn-outline-light {
  border-width: 2px;
  font-weight: 600;
  border-radius: 8px;
}

/* ---- Navbar ---- */
.navbar {
  padding: 15px 0;
  transition: all 0.3s;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(15, 25, 35, 0.97);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  font-size: 1.5rem;
  color: #fff !important;
  letter-spacing: -0.5px;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  padding: 8px 16px !important;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff !important;
}

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 4px 8px;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* ---- Hero ---- */
.hero-section {
  min-height: 100vh;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232, 93, 38, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(37, 99, 235, 0.06) 0%, transparent 50%);
}

.badge-pill {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 24px;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

/* Hero Graphic */
.hero-graphic {
  position: relative;
  height: 500px;
}

.device-mockup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 380px;
  background: #1a2d42;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-screen {
  background: #fff;
  border-radius: 8px;
  height: 100%;
  padding: 12px;
  overflow: hidden;
}

.mockup-nav {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-bottom: 16px;
}

.mockup-hero {
  height: 80px;
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  border-radius: 8px;
  margin-bottom: 16px;
}

.mockup-cards {
  display: flex;
  gap: 8px;
}

.mockup-card {
  flex: 1;
  height: 60px;
  background: #f1f5f9;
  border-radius: 6px;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}

.floating-card i {
  font-size: 1.2rem;
}

.card-1 { top: 60px; right: 20px; animation-delay: 0s; }
.card-2 { top: 200px; left: -20px; animation-delay: 2s; }
.card-3 { bottom: 80px; right: 0; animation-delay: 4s; }

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

/* ---- Section Headers ---- */
.section-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-badge.badge-dark {
  background: rgba(232, 93, 38, 0.15);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Service Cards ---- */
.service-card {
  background: #fff;
  padding: 35px 30px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #fff;
}

.service-icon.bg-blue { background: var(--blue); }
.service-icon.bg-green { background: var(--green); }
.service-icon.bg-orange { background: var(--orange); }
.service-icon.bg-purple { background: var(--purple); }
.service-icon.bg-teal { background: var(--teal); }
.service-icon.bg-red { background: var(--red); }

.service-card h5 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---- Portfolio Cards ---- */
.portfolio-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.portfolio-img {
  height: 200px;
  overflow: hidden;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

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

.portfolio-body {
  padding: 24px;
}

.portfolio-body h5 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.portfolio-body h5 a {
  color: inherit;
  text-decoration: none;
}

.portfolio-body h5 a:hover {
  color: var(--accent);
}

.portfolio-body p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 14px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portfolio-tags span {
  background: #f1f5f9;
  color: #475569;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.portfolio-cta {
  border: 2px dashed #cbd5e1;
  background: transparent;
  min-height: 340px;
}

.portfolio-cta:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.cta-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* ---- Why Us Cards ---- */
.why-card {
  padding: 30px 20px;
}

.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(232, 93, 38, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
}

.why-card h5 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

/* Service Area Banner */
.service-area {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 35px 40px;
}

.service-area h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.area-tags span {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- Pricing Cards ---- */
.pricing-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.pricing-featured {
  border: 2px solid var(--accent);
  box-shadow: 0 10px 40px rgba(232, 93, 38, 0.1);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.pricing-header h5 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 8px;
}

.pricing-amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.pricing-amount .currency {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 8px;
}

.pricing-amount .price {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
}

.pricing-amount .pricing-period {
  font-size: 1.25rem;
  font-weight: 600;
  color: #64748b;
  align-self: flex-end;
  margin-bottom: 6px;
}

.pricing-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 4px;
  margin-bottom: 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  flex-grow: 1;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li i {
  color: var(--green);
  font-size: 1rem;
}

/* ---- CTA Band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--accent), #c44a15);
  color: #fff;
  padding: 80px 0;
}

.cta-band h2 {
  font-size: 2.2rem;
  font-weight: 800;
}

/* ---- Contact ---- */
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-form {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.contact-form .form-control,
.contact-form .form-select {
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 93, 38, 0.1);
}

.contact-form .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(232, 93, 38, 0.3);
  z-index: 999;
}

.back-to-top:hover {
  color: #fff;
  transform: translateY(-3px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* ---- Animations ---- */
.animate-target {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-target.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations within rows */
.row .animate-target:nth-child(2) { transition-delay: 0.1s; }
.row .animate-target:nth-child(3) { transition-delay: 0.2s; }
.row .animate-target:nth-child(4) { transition-delay: 0.3s; }
.row .animate-target:nth-child(5) { transition-delay: 0.4s; }
.row .animate-target:nth-child(6) { transition-delay: 0.5s; }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 70px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .service-area {
    padding: 25px;
  }

  .contact-form {
    padding: 30px 24px;
  }

  .cta-band h2 {
    font-size: 1.75rem;
  }

  .navbar-collapse {
    background: rgba(15, 25, 35, 0.98);
    padding: 16px;
    border-radius: 12px;
    margin-top: 10px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 12px;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 18px;
    border-radius: 10px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .pricing-amount .price {
    font-size: 2.8rem;
  }
}
