/* ============================================================
   Serancon – Shared Stylesheet
   Stack: Tailwind CDN + custom CSS + GSAP
   ============================================================ */

:root {
  --primary:       #00cfef;
  --primary-dark:  #00b4d8;
  --primary-light: #e0f7fc;
  --dark:          #0f172a;
  --text:          #1e293b;
  --muted:         #64748b;
}

* { font-family: 'Inter', system-ui, sans-serif; box-sizing: border-box; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Dot pattern ── */
.dot-pattern {
  background-image: radial-gradient(circle, rgba(255,255,255,0.18) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}
.dot-pattern-dark {
  background-image: radial-gradient(circle, #00cfef33 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

/* ── Navbar ── */
#navbar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}

/* ── Nav links ── */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ── Dropdown ── */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  animation: dropIn 0.2s ease forwards;
}
.dropdown:hover .dropdown-menu { display: block; }

@keyframes dropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Buttons ── */
.btn-primary {
  background: var(--primary);
  color: #fff;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,207,239,.30);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 25px rgba(0,207,239,.50);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid #e2e8f0;
  color: var(--text);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ── Service cards ── */
.service-card {
  transition: transform 0.3s cubic-bezier(.4,0,.2,1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,207,239,.15);
  border-color: var(--primary) !important;
}

/* ── Testimonial cards ── */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,.08);
}

/* ── Benefit items ── */
.benefit-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.benefit-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,207,239,.10);
}

/* ── Hero floating cards ── */
.floating-card { animation: floatY 5s ease-in-out infinite; }
.floating-card:nth-child(2) { animation-delay: -1.7s; }
.floating-card:nth-child(3) { animation-delay: -3.3s; }

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

/* ── GSAP initial states ── */
.gsap-fade { opacity: 0; }

/* ── Counter ── */
.stat-number { font-variant-numeric: tabular-nums; }

/* ── Process connecting line ── */
.process-line {
  position: absolute;
  top: 2rem; /* align with circle center */
  left: calc(50% + 2.5rem);
  right: calc(-50% + 2.5rem);
  height: 2px;
  background: linear-gradient(to right, var(--primary), rgba(0,207,239,.2));
  display: none;
}
@media (min-width: 1024px) { .process-line { display: block; } }

/* ── Page hero (subpages) ── */
.page-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e0f7fc 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #00cfef22 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── Content sections ── */
.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: .6rem;
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: .1rem;
  border-radius: 50%;
  background: var(--primary-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2300cfef'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: cover;
}

/* ── Feature cards (3-col on subpages) ── */
.feature-card {
  border: 2px solid #f1f5f9;
  border-radius: 1rem;
  padding: 1.5rem;
  background: #fff;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,207,239,.12);
}
.feature-card .icon-wrap {
  width: 2.75rem; height: 2.75rem;
  border-radius: .75rem;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.1rem;
}

/* ── CTA section ── */
.cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── Mobile menu transitions ── */
#mobile-menu { transition: opacity 0.2s ease; }
#mobile-itsec-icon { transition: transform 0.25s ease; }

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }
