/* ============================================================
   Skylium Technologies — Home Page Stylesheet
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────────── */
#hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero-bg-glow-1 {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,166,0.1) 0%, transparent 65%);
  top: -200px; right: -100px;
  z-index: 0; pointer-events: none;
  animation: glow-drift-1 10s ease-in-out infinite alternate;
  transform: translateZ(0);
}
.hero-bg-glow-2 {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,168,166,0.08) 0%, transparent 65%);
  bottom: -100px; left: -100px;
  z-index: 0; pointer-events: none;
  animation: glow-drift-2 12s ease-in-out infinite alternate;
  transform: translateZ(0);
}
@keyframes glow-drift-1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-40px, 60px, 0) scale(1.1); }
}
@keyframes glow-drift-2 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(50px, -40px, 0) scale(1.15); }
}

.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,180,166,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,166,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0; pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

/* Hero inner grid */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - var(--nav-h));
  padding-block: 5rem 4rem;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: hero-visual-in 1.2s cubic-bezier(0.16,1,0.3,1) 0.6s forwards;
}
@keyframes hero-visual-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-orange);
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-in 0.8s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
}
.hero-eyebrow-line {
  width: 32px; height: 1px;
  background: var(--grad-orange);
  border-radius: 1px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--clr-white);
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: hero-in 0.9s cubic-bezier(0.16,1,0.3,1) 0.35s forwards;
}
.hero-title .accent { color: var(--clr-orange); }
.hero-title .accent-blue { color: var(--clr-blue); }

.hero-typewriter-wrap {
  display: block;
  height: calc(clamp(1.6rem, 3.8vw, 3rem) * 1.3);
  overflow: hidden;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-in 0.9s cubic-bezier(0.16,1,0.3,1) 0.5s forwards;
}
#typewriter {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--clr-slate);
  display: block;
  white-space: nowrap;
}
#typewriter::after {
  content: '|';
  animation: blink 0.85s step-end infinite;
  color: var(--clr-orange);
  margin-left: 2px;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--clr-text-2);
  line-height: 1.7;
  max-width: 560px;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-in 0.9s cubic-bezier(0.16,1,0.3,1) 0.65s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-in 0.9s cubic-bezier(0.16,1,0.3,1) 0.8s forwards;
}

.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  color: var(--clr-text-3);
  text-transform: uppercase;
  opacity: 0;
  animation: hero-in 0.9s cubic-bezier(0.16,1,0.3,1) 1.1s forwards;
  margin-top: 2rem;
  white-space: nowrap;
}
.hero-trust-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--clr-teal);
  box-shadow: 0 0 8px var(--clr-teal);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
.hero-trust-sep {
  color: rgba(0,180,166,0.25);
  opacity: 0.5;
}



.hero-device {
  position: relative;
  background: linear-gradient(135deg, rgba(11,22,36,0.96) 0%, rgba(8,16,28,0.98) 100%);
  border: 1px solid rgba(0,180,166,0.28);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7), 0 0 80px rgba(0,180,166,0.08);
  overflow: hidden;
}
.hero-device::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,180,166,0.05) 0%, transparent 50%, rgba(0,180,166,0.03) 100%);
  pointer-events: none;
}

.device-header {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--clr-border);
}
.device-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.device-dot:nth-child(1) { background: #ff5f57; }
.device-dot:nth-child(2) { background: #febc2e; }
.device-dot:nth-child(3) { background: #28c840; }
.device-title {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--clr-text-3); margin-left: auto;
  letter-spacing: 0.08em;
}

.device-metrics {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: 1.25rem;
}
.device-metric {
  background: rgba(0,180,166,0.06);
  border: 1px solid var(--clr-border-orange);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.device-metric .label {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--clr-text-3); margin-bottom: 0.4rem;
}
.device-metric .value {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 700; color: var(--clr-orange); line-height: 1;
}
.device-metric .value.blue { color: var(--clr-blue); }

.device-bar-group { display: flex; flex-direction: column; gap: 0.75rem; }
.device-bar-item { display: flex; align-items: center; gap: 0.75rem; }
.device-bar-item .bar-label {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--clr-text-3); width: 90px; flex-shrink: 0;
  letter-spacing: 0.06em;
}
.device-bar-track {
  flex: 1; height: 4px; background: rgba(255,255,255,0.05);
  border-radius: 2px; overflow: hidden;
}
.device-bar-fill {
  height: 100%; border-radius: 2px;
  background: var(--grad-orange);
  animation: bar-grow 1.5s cubic-bezier(0.16,1,0.3,1) 1s both;
}
.device-bar-fill.blue { background: var(--grad-blue); }
@keyframes bar-grow { from { width: 0; } }
.device-bar-item .bar-pct {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--clr-text-2); width: 32px; text-align: right;
}


@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Stats Strip — source-matched stat-pill style ─────────── */
#stats {
  background: rgba(2,8,18,0.6);
  backdrop-filter: blur(28px);
  border-top: 1px solid rgba(0,180,166,0.13);
  border-bottom: 1px solid rgba(0,180,166,0.13);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin-inline: auto;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 1rem 1.4rem;
  background: rgba(0,180,166,0.05);
  border: 1px solid rgba(0,180,166,0.12);
  border-radius: 9999px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.stat-item:hover {
  background: rgba(0,180,166,0.10);
  border-color: rgba(0,180,166,0.30);
  box-shadow: 0 0 18px rgba(0,180,166,0.10);
  transform: translateY(-2px);
}
.stat-item::after { display: none; }

/* ── Services Preview ───────────────────────────────────────── */
#services-preview {
  position: relative;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.service-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: #0D1624;
  border: 1px solid rgba(0,180,166, 0.12);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
              border-color 0.3s,
              box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,180,166,0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,180,166,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: rgba(0,180,166, 0.10);
  border: 1px solid rgba(0,180,166, 0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}
.service-card:hover .service-icon {
  background: rgba(0,180,166, 0.15);
  box-shadow: 0 0 16px rgba(0,180,166,0.18);
}
.service-icon svg { width: 24px; height: 24px; color: var(--clr-teal); }

.service-icon, .service-card h3, .service-card p, .service-card-arrow { position: relative; z-index: 1; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: #ffffff; margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 0.88rem; color: #9bb8b6;
  line-height: 1.65; flex: 1;
}
.service-card-arrow {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #00B4A6; margin-top: 1.5rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s, transform 0.25s;
}
.service-card:hover .service-card-arrow { opacity: 1; transform: translateX(0); }
.service-card-arrow svg { width: 14px; height: 14px; }

.service-card.featured {
  border-color: rgba(0,180,166, 0.22);
  background: #0D1624;
}

/* ── Why Skylium Technologies ───────────────────────────────────────────── */
#why {
  position: relative;
  overflow: hidden;
}
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}
.why-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.why-graphic {
  flex: 1;
  background: #0D1624;
  border: 1px solid var(--clr-border-orange);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.why-graphic::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,166,0.15) 0%, transparent 70%);
  top: -80px; right: -80px;
}

.checklist { display: flex; flex-direction: column; gap: 0; margin-top: 2rem; }
.check-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(0,180,166,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, background 0.2s;
  flex: 1;
}
.check-item:hover {
  border-color: var(--clr-border-orange);
  background: rgba(0,180,166,0.13);
}
.check-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  background: rgba(0,180,166,0.15);
  border: 1px solid rgba(0,180,166,0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.check-icon svg { width: 12px; height: 12px; color: white; stroke-width: 3; }
.check-item h4 {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  color: var(--clr-white); margin-bottom: 0.2rem;
}
.check-item p { font-size: 0.85rem; color: #9bb8b6; line-height: 1.5; }

/* ── Process ────────────────────────────────────────────────── */
#process { background: var(--clr-bg-2); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 4rem;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 32px; left: 15%;
  width: 70%; height: 1px;
  background: linear-gradient(90deg, var(--clr-teal), rgba(0,180,166,0.25));
  z-index: 0;
}
.process-step {
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--clr-bg-2);
  border: 2px solid var(--clr-orange);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--clr-orange);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 10px var(--clr-bg-2), 0 0 24px rgba(0,180,166,0.2);
  transition: background 0.3s, box-shadow 0.3s;
}
.process-step:hover .step-num {
  background: linear-gradient(rgba(0,180,166,0.13), rgba(0,180,166,0.13)), var(--clr-bg-2);
  box-shadow: 0 0 0 10px var(--clr-bg-2), 0 0 40px rgba(0,180,166,0.3);
}
.step-num.blue { border-color:rgba(0,180,166,0.25); color: var(--clr-blue); }
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--clr-white); margin-bottom: 0.5rem;
}
.process-step p { font-size: 0.87rem; color: var(--clr-text-2); line-height: 1.6; }

/* ── Testimonials ───────────────────────────────────────────── */
#testimonials { position: relative; overflow: hidden; }
.testimonials-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,180,166,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.slider-wrap {
  margin-top: 3.5rem;
  position: relative;
  overflow: hidden;
}
.slider-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.slide {
  min-width: 100%;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
}
.testimonial-card {
  max-width: 720px; width: 100%;
  background: #0D1624;
  border: 1px solid var(--clr-border-orange);
  border-radius: var(--radius-xl);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px; left: 2rem;
  font-family: var(--font-display);
  font-size: 10rem; font-weight: 700;
  color: rgba(0,180,166,0.06);
  line-height: 1;
  pointer-events: none;
}
.testimonial-text {
  font-size: 1.1rem; color: var(--clr-text);
  line-height: 1.75; font-style: italic;
  margin-bottom: 2rem; position: relative; z-index: 1;
}
.testimonial-author {
  display: flex; align-items: center; gap: 1rem;
  position: relative; z-index: 1;
}
.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(0,180,166, 0.15);
  border: 1.5px solid rgba(0,180,166, 0.35);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.1rem; color: var(--clr-teal);
  flex-shrink: 0;
}
.author-name {
  font-family: var(--font-display);
  font-weight: 700; color: var(--clr-white);
  font-size: 0.95rem;
}
.author-role { font-size: 0.82rem; color: var(--clr-orange); margin-top: 0.1rem; }
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 1.5rem; }
.testimonial-stars svg { width: 18px; height: 18px; color: var(--clr-orange); fill: var(--clr-orange); }

.slider-controls {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 2.5rem;
}
.slider-prev, .slider-next {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--clr-border-orange);
  background: #0D1624;
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-orange);
  transition: all 0.2s;
  cursor: pointer;
}
.slider-prev:hover, .slider-next:hover {
  background: rgba(0,180,166,0.13);
  border-color: var(--clr-orange);
  transform: scale(1.08);
}
.slider-prev svg, .slider-next svg { width: 18px; height: 18px; }
.slider-dots { display: flex; gap: 0.5rem; }
.slider-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--clr-border-orange);
  cursor: pointer;
  transition: width 0.3s, background 0.2s;
}
.slider-dot.active {
  width: 24px;
  background: var(--clr-orange);
}

/* ── CTA Banner ─────────────────────────────────────────────── */
#cta-banner {
  position: relative;
  padding-block: 6rem;
  overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,180,166,0.08) 0%, rgba(8,16,28,0.95) 50%, rgba(0,180,166,0.05) 100%);
  border-top: 1px solid rgba(0,180,166,0.15);
  border-bottom: 1px solid rgba(0,180,166,0.08);
}
.cta-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(8,20,38,0.55) 0%, transparent 100%);
  pointer-events: none;
}
.cta-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0,180,166,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.02em;
  color: var(--clr-white); line-height: 1.15;
  margin-bottom: 1.25rem;
}
.cta-content h2 span { color: var(--clr-orange); }
.cta-content p {
  font-size: 1.05rem; color: var(--clr-text-2);
  line-height: 1.7; margin-bottom: 2.5rem;
}
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-phone {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem; color: var(--clr-text-2);
  margin-top: 1.5rem; justify-content: center;
}
.cta-phone a { color: var(--clr-blue); transition: color 0.15s; }
.cta-phone a:hover { color: var(--clr-blue-lt); }

/* Responsive */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .why-inner { grid-template-columns: 1fr; }
  .why-visual { order: -1; }
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item::after { display: none; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .process-steps::before { display: none; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .testimonial-card { padding: 2rem 1.5rem; }

  /* Hero — fix overflow and layout */
  #hero { padding-top: var(--nav-h); }
  .hero-inner { min-height: auto; padding-block: 3rem 2.5rem; gap: 0; }
  .hero-content { width: 100%; max-width: 100%; overflow: hidden; }

  /* Eyebrow — prevent overflow */
  .hero-eyebrow {
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.65rem;
  }

  /* Title */
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .hero-typewriter-wrap { height: calc(clamp(1.3rem, 5vw, 1.8rem) * 1.3); }
  #typewriter { font-size: clamp(1.3rem, 5vw, 1.8rem); }

  /* Sub text */
  .hero-sub { font-size: 0.95rem; margin-bottom: 2rem; }

  /* Buttons — stack vertically */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Trust bar — allow wrapping on small screens */
  .hero-trust {
    flex-wrap: wrap;
    white-space: normal;
    font-size: 0.62rem;
    gap: 0.35rem;
  }
}
