/* ============================================================
   SECURA WEB — Premium "What We Do" Section
   ============================================================ */

/* ── Section Wrapper ── */
#what-we-do {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  padding: 120px 0;
}

/* ── Animated Background Orbs ── */
.wwd-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.wwd-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.13;
  animation: orbFloat 12s ease-in-out infinite;
}
.wwd-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #ff7a00 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.wwd-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #ff7a00 0%, transparent 70%);
  bottom: 0; right: -80px;
  animation-delay: -6s;
}
.wwd-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #ffb347 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -3s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Grid Lines Background ── */
.wwd-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,122,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,122,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

/* ── Section Header ── */
.wwd-header {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 90px;
}
.wwd-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ff7a00;
  background: rgba(255,122,0,0.1);
  border: 1px solid rgba(255,122,0,0.25);
  border-radius: 9999px;
  padding: 6px 18px;
  margin-bottom: 20px;
}
.wwd-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: #ff7a00;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.5); }
}
.wwd-main-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-family: var(--font-h);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 18px;
}
.wwd-main-title .highlight {
  background: linear-gradient(135deg, #ff7a00, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wwd-main-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Service Row (alternating layout) ── */
.wwd-service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-bottom: 100px;
  padding-bottom: 100px;
  border-bottom: 1px solid var(--border);
}
.wwd-service-row:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}
.wwd-service-row.reverse {
  direction: rtl;
}
.wwd-service-row.reverse > * {
  direction: ltr;
}

/* ── Content Side ── */
.wwd-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.wwd-service-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ff7a00;
  margin-bottom: 4px;
}
.wwd-service-tag .tag-line {
  width: 30px; height: 2px;
  background: linear-gradient(90deg, #ff7a00, transparent);
  border-radius: 2px;
}
.wwd-service-title {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-family: var(--font-h);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.wwd-service-desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
}
.wwd-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.wwd-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--text-2);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: default;
}
.wwd-feature-item:hover {
  border-color: rgba(255,122,0,0.35);
  background: rgba(255,122,0,0.06);
  color: var(--text);
  transform: translateX(4px);
}
.wwd-feature-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: rgba(255,122,0,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .85rem;
}
.wwd-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.wwd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-3);
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

/* ── Visual Side (Illustration Panel) ── */
.wwd-visual {
  position: relative;
}
.wwd-glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.wwd-glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 80px rgba(255,122,0,0.15), 0 0 0 1px rgba(255,122,0,0.2);
}
.wwd-glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,122,0,0.5), transparent);
}
.wwd-glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(circle at 70% 20%, rgba(255,122,0,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ── SVG Illustration Wrappers ── */
.wwd-illus {
  position: relative;
  z-index: 1;
}

/* Cybersecurity Shield */
.cyber-shield-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.cyber-shield-main {
  position: relative;
  width: 140px; height: 140px;
  margin: 0 auto;
}
.cyber-shield-main svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 24px rgba(255,122,0,0.5));
  animation: shieldPulse 3s ease-in-out infinite;
}
@keyframes shieldPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(255,122,0,0.4)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 40px rgba(255,122,0,0.7)); transform: scale(1.04); }
}
.cyber-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,122,0,0.2);
  animation: ringExpand 3s ease-out infinite;
}
.cyber-ring-1 { width: 170px; height: 170px; top: -15px; left: -15px; animation-delay: 0s; }
.cyber-ring-2 { width: 210px; height: 210px; top: -35px; left: -35px; animation-delay: 1s; }
.cyber-ring-3 { width: 250px; height: 250px; top: -55px; left: -55px; animation-delay: 2s; }
@keyframes ringExpand {
  0% { opacity: 0.6; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(1.1); }
}
.cyber-stats-mini {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  width: 100%;
}
.csm-item {
  text-align: center;
  padding: 14px 8px;
  border-radius: 12px;
  background: rgba(255,122,0,0.07);
  border: 1px solid rgba(255,122,0,0.15);
}
.csm-num {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-h);
  color: #ff7a00;
  display: block;
}
.csm-lbl {
  font-size: .72rem;
  color: var(--text-3);
  margin-top: 2px;
}
.cyber-threat-bar {
  width: 100%;
}
.ctb-label {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-2);
  margin-bottom: 6px;
}
.ctb-track {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.ctb-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff7a00, #ffb347);
  animation: fillBar 2s ease-out forwards;
  width: 0%;
}
@keyframes fillBar { to { width: var(--fill-width); } }

/* Website / Hosting visual */
.web-browser-mock {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.wbm-bar {
  background: rgba(255,122,0,0.1);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.wbm-dot { width: 8px; height: 8px; border-radius: 50%; }
.wbm-dot:nth-child(1) { background: #ff5f57; }
.wbm-dot:nth-child(2) { background: #ffbd2e; }
.wbm-dot:nth-child(3) { background: #28c840; }
.wbm-url {
  flex: 1;
  height: 22px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: .72rem;
  color: var(--text-3);
  gap: 6px;
}
.wbm-url svg { flex-shrink: 0; }
.wbm-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wbm-hero-bar {
  height: 80px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,122,0,0.15), rgba(255,122,0,0.05));
  border: 1px solid rgba(255,122,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wbm-hero-bar span {
  font-size: .75rem;
  font-weight: 700;
  color: #ff7a00;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.wbm-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.wbm-card-block {
  height: 44px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

/* ERP Dashboard */
.erp-dash-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.erp-dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.erp-dash-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-h);
}
.erp-dash-badge {
  font-size: .7rem;
  background: rgba(255,122,0,0.15);
  color: #ff7a00;
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 600;
}
.erp-chart-area {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}
.erp-bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #ff7a00, rgba(255,122,0,0.3));
  transition: height .5s ease;
  animation: barGrow 1s ease-out forwards;
}
@keyframes barGrow { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); } }
.erp-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.erp-metric {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,122,0,0.06);
  border: 1px solid rgba(255,122,0,0.12);
}
.erp-metric-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ff7a00;
  font-family: var(--font-h);
}
.erp-metric-lbl {
  font-size: .72rem;
  color: var(--text-3);
  margin-top: 2px;
}
.erp-industry-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.erp-pill {
  font-size: .73rem;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255,122,0,0.2);
  color: #ff7a00;
  background: rgba(255,122,0,0.06);
  white-space: nowrap;
}

/* Marketing Funnel */
.mkt-funnel-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.mkt-funnel-step {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all .3s ease;
  animation: stepSlide .6s ease-out both;
}
.mkt-funnel-step:hover {
  border-color: rgba(255,122,0,0.3);
  background: rgba(255,122,0,0.06);
  transform: scale(1.02);
}
.mkt-funnel-step:nth-child(1) { animation-delay: .1s; }
.mkt-funnel-step:nth-child(2) { animation-delay: .2s; }
.mkt-funnel-step:nth-child(3) { animation-delay: .3s; }
.mkt-funnel-step:nth-child(4) { animation-delay: .4s; }
.mkt-funnel-step:nth-child(5) { animation-delay: .5s; }
@keyframes stepSlide {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
.mkt-step-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,122,0,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.mkt-step-text { flex: 1; }
.mkt-step-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}
.mkt-step-desc {
  font-size: .75rem;
  color: var(--text-3);
}
.mkt-step-count {
  font-size: .8rem;
  font-weight: 700;
  color: #ff7a00;
}

/* Mobile App Mockup */
.mobile-mockup-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.phone-frame {
  width: 140px;
  border-radius: 28px;
  border: 2px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: phoneFloat 4s ease-in-out infinite;
}
.phone-frame.main-phone {
  width: 160px;
  animation-delay: -2s;
  box-shadow: 0 20px 60px rgba(255,122,0,0.2), 0 0 0 1px rgba(255,122,0,0.15);
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.phone-notch {
  height: 20px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.phone-notch-bar {
  width: 50px; height: 5px;
  background: var(--border);
  border-radius: 99px;
}
.phone-screen {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 180px;
}
.ps-header {
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(255,122,0,0.3), rgba(255,122,0,0.1));
}
.ps-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.ps-block {
  height: 32px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.ps-block.orange { background: rgba(255,122,0,0.15); border-color: rgba(255,122,0,0.2); }
.ps-line {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
}
.ps-line.w60 { width: 60%; }
.phone-app-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.pal-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.pal-info {}
.pal-name {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  display: block;
}
.pal-sub {
  font-size: .73rem;
  color: var(--text-3);
}
.pal-badge {
  margin-left: auto;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255,122,0,0.12);
  color: #ff7a00;
}

/* ── Bottom CTA Banner ── */
.wwd-cta-banner {
  position: relative;
  z-index: 2;
  margin-top: 80px;
  border-radius: 28px;
  padding: 60px 48px;
  background: linear-gradient(135deg, rgba(255,122,0,0.12) 0%, rgba(255,179,71,0.06) 100%);
  border: 1px solid rgba(255,122,0,0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
}
.wwd-cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,122,0,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.wwd-cta-text h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-family: var(--font-h);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.wwd-cta-text p {
  font-size: .95rem;
  color: var(--text-2);
  max-width: 480px;
}
.wwd-cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

/* ── Floating animated connecting dots ── */
.wwd-dot-trail {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff7a00;
  opacity: 0.4;
  animation: dotTrail 8s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes dotTrail {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-60px) translateX(30px) scale(1.5); opacity: 0.2; }
  100% { transform: translateY(-120px) translateX(-20px) scale(0.5); opacity: 0; }
}

/* ── Scroll Reveal Utility ── */
.wwd-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.wwd-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.wwd-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.wwd-reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.wwd-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.wwd-reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .wwd-service-row {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 60px;
    padding-bottom: 60px;
  }
  .wwd-service-row.reverse { direction: ltr; }
  .wwd-features-list { grid-template-columns: 1fr 1fr; }
  .wwd-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }
  .wwd-cta-actions { justify-content: center; }
  .mobile-mockup-wrap .phone-frame:not(.main-phone) { display: none; }
}
@media (max-width: 600px) {
  #what-we-do { padding: 80px 0; }
  .wwd-features-list { grid-template-columns: 1fr; }
  .wwd-header { margin-bottom: 56px; }
  .wwd-cta-banner { padding: 28px 18px; }
}
