/* SerpCircle WordPress Theme — Custom Styles */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #00D4FF;
  --purple: #8B5CF6;
  --bg: #0A0A0A;
  --bg2: #060606;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.3); border-radius: 3px; }

/* ── Selection ── */
::selection { background: rgba(0,212,255,0.25); color: #fff; }

/* ── Glass Card ── */
.glass-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  border-color: rgba(0,212,255,0.2);
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(to right, var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Gradient Button ── */
.btn-gradient {
  background: linear-gradient(to right, var(--blue), var(--purple));
  color: #000;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px 32px;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  font-size: 15px;
}
.btn-gradient:hover { transform: scale(1.03); box-shadow: 0 0 30px rgba(0,212,255,0.35); }
.btn-gradient:active { transform: scale(0.97); }
.btn-gradient:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 12px;
  padding: 14px 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: scale(1.02); }

/* ── Navbar ── */
#sc-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}
#sc-navbar.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255,255,255,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* Logo ping ring */
@keyframes logo-ping {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 0; }
}
.logo-ping { animation: logo-ping 3s infinite; }

/* Mobile menu */
#sc-mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 99;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
#sc-mobile-menu.open { display: block; }

/* ── Animated Blobs ── */
@keyframes blob {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%  { transform: translate(30px,-50px) scale(1.1); }
  66%  { transform: translate(-20px,20px) scale(0.9); }
}
.blob { animation: blob 10s infinite ease-in-out; }
.blob-delay-3 { animation-delay: 3s; }
.blob-delay-6 { animation-delay: 6s; }

/* ── Fade In animations ── */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Brand ticker ── */
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-track { animation: ticker 20s linear infinite; white-space: nowrap; display: flex; gap: 32px; width: max-content; }
.ticker-fade-l { position: absolute; left: 0; top: 0; bottom: 0; width: 80px; background: linear-gradient(to right, var(--bg), transparent); z-index: 2; pointer-events: none; }
.ticker-fade-r { position: absolute; right: 0; top: 0; bottom: 0; width: 80px; background: linear-gradient(to left, var(--bg), transparent); z-index: 2; pointer-events: none; }

/* ── Pulse dot ── */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.pulse-dot { animation: pulse 2s infinite; }

/* ── Steps connector arrow ── */
.process-connector { display: none; }
@media (min-width: 768px) { .process-connector { display: flex; } }

/* ── Contact Form ── */
.sc-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.sc-input::placeholder { color: rgba(255,255,255,0.25); }
.sc-input:focus { border-color: rgba(0,212,255,0.5); }
textarea.sc-input { resize: none; }

.sc-option-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.sc-option-btn:hover { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.8); }
.sc-option-btn.selected-blue { border-color: var(--blue); background: rgba(0,212,255,0.1); color: var(--blue); }
.sc-option-btn.selected-purple { border-color: var(--purple); background: rgba(139,92,246,0.1); color: var(--purple); }

/* ── Step indicator progress bar ── */
.step-bar { height: 2px; background: rgba(255,255,255,0.1); border-radius: 1px; }
.step-bar-fill { height: 100%; background: linear-gradient(to right, var(--blue), var(--purple)); border-radius: 1px; transition: width 0.5s ease; }

/* ── Chat Widget ── */
#sc-chat-panel {
  display: none;
  position: fixed;
  bottom: 88px; right: 24px;
  width: 320px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(14,14,14,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  overflow: hidden;
  z-index: 200;
  animation: chat-in 0.3s ease;
}
#sc-chat-panel.open { display: block; }
@keyframes chat-in { from { opacity:0; transform:scale(0.85) translateY(20px); } to { opacity:1; transform:scale(1) translateY(0); } }

.sc-floating-btn {
  position: fixed;
  right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 200;
}
.sc-floating-btn:hover { transform: scale(1.08); }
.sc-floating-btn:active { transform: scale(0.92); }

#sc-chat-btn {
  bottom: 96px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 4px 20px rgba(0,212,255,0.3);
}
#sc-chat-btn:hover { box-shadow: 0 4px 30px rgba(0,212,255,0.5); }

#sc-wa-btn {
  bottom: 24px;
  background: #25D366;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
#sc-wa-btn:hover { box-shadow: 0 4px 30px rgba(37,211,102,0.5); }

/* ── Testimonial Carousel ── */
.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; animation: slide-in 0.4s ease; }
@keyframes slide-in { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }

/* ── Team hover ── */
.team-card { transition: transform 0.3s ease; }
.team-card:hover { transform: translateY(-6px); }

/* ── Service card hover ── */
.service-card { transition: transform 0.3s ease, border-color 0.3s ease; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(0,212,255,0.3) !important; }

/* ── Case study card hover ── */
.cs-card { transition: transform 0.3s ease; }
.cs-card:hover { transform: translateY(-6px); }

/* ── Spinner ── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin 0.8s linear infinite; display: inline-block; }

/* ── Error / Success boxes ── */
.form-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: rgb(252,165,165); border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-top: 12px; display: none; }
.form-success { background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.2); color: var(--blue); border-radius: 12px; padding: 16px; text-align: center; display: none; }

/* ── Grid background ── */
.grid-bg {
  background-image: linear-gradient(rgba(0,212,255,1) 1px, transparent 1px), linear-gradient(90deg, rgba(0,212,255,1) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.03;
}

/* ── Section spacing ── */
.section-py { padding-top: 96px; padding-bottom: 96px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero-h1 { font-size: 2.5rem !important; }
  .section-py { padding-top: 64px; padding-bottom: 64px; }
  #sc-chat-panel { width: calc(100vw - 48px); right: 24px; }
}
