/* ═══════════════════════════════════════════════════════════
   QUIVALS.COM — Futuristic Dark Mode Landing Page
   Palette: BG #020617 | Accent Sky #38bdf8 | Accent Indigo #818cf8 | Slate #94a3b8
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', sans-serif;
  background: #020617;
  color: #e2e8f0;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  color: #38bdf8; margin-bottom: 16px;
}
.section-label::before {
  content: ''; width: 24px; height: 2px; background: linear-gradient(90deg, #38bdf8, #818cf8); border-radius: 2px;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15;
  margin-bottom: 20px;
}
.section-title span { background: linear-gradient(135deg, #38bdf8, #818cf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-subtitle { font-size: 1.1rem; color: #94a3b8; max-width: 600px; }

/* ── Animated Background Mesh ── */
.bg-mesh {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 600px 400px at 20% 20%, rgba(56,189,248,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 80%, rgba(129,140,248,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 50%, rgba(56,189,248,0.03) 0%, transparent 70%);
  animation: meshFloat 20s ease-in-out infinite alternate;
}
@keyframes meshFloat {
  0%   { background-position: 0% 0%, 100% 100%, 50% 50%; }
  100% { background-position: 30% 20%, 70% 60%, 40% 80%; }
}

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0; transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(2,6,23,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(56,189,248,0.1); padding: 10px 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.6rem; font-weight: 800; text-decoration: none; color: #fff; letter-spacing: -0.5px; }
.logo span { background: linear-gradient(135deg, #38bdf8, #818cf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: #94a3b8; text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, #38bdf8, #818cf8); transition: width 0.3s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.btn-nav {
  padding: 10px 24px; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; color: #fff; border: none; cursor: pointer;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  transition: all 0.3s; box-shadow: 0 4px 15px rgba(56,189,248,0.25);
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(56,189,248,0.35); }

/* Mobile Menu */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { width: 24px; height: 2px; background: #e2e8f0; transition: all 0.3s; border-radius: 2px; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero Section ── */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative;
  padding-top: 100px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../img/hero-bg.png') center/cover no-repeat;
  opacity: 0.3;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, #020617 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
  background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.2);
  border-radius: 50px; font-size: 0.85rem; color: #38bdf8; font-weight: 500;
  margin-bottom: 28px; animation: pulse-badge 3s ease-in-out infinite;
}
.hero-badge .dot { width: 8px; height: 8px; background: #38bdf8; border-radius: 50%; animation: dot-pulse 2s ease-in-out infinite; }
@keyframes dot-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes pulse-badge { 0%,100% { box-shadow: 0 0 0 0 rgba(56,189,248,0.15); } 50% { box-shadow: 0 0 0 8px rgba(56,189,248,0); } }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; line-height: 1.1;
  margin-bottom: 24px; color: #fff;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, #38bdf8, #818cf8, #38bdf8);
  background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; animation: gradientShift 4s linear infinite;
}
@keyframes gradientShift { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.hero p { font-size: 1.15rem; color: #94a3b8; margin-bottom: 40px; max-width: 560px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
  border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none;
  color: #fff; border: none; cursor: pointer; position: relative; overflow: hidden;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #38bdf8);
  background-size: 200% auto; animation: gradientShift 3s linear infinite;
  box-shadow: 0 4px 20px rgba(56,189,248,0.3);
  transition: all 0.3s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(56,189,248,0.45); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
  border-radius: 10px; font-weight: 600; font-size: 1rem; text-decoration: none;
  color: #e2e8f0; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer; transition: all 0.3s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(56,189,248,0.3); transform: translateY(-2px); }

/* Hero floating stats */
.hero-stats {
  display: flex; gap: 40px; margin-top: 56px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.hero-stat h3 { font-size: 2rem; font-weight: 800; color: #fff; }
.hero-stat h3 span { color: #38bdf8; }
.hero-stat p { font-size: 0.85rem; color: #64748b; margin-top: 2px; }

/* ── Glassmorphism Card (Bento) ── */
.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 32px;
  transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative; overflow: hidden;
}
.glass-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 16px;
  padding: 1px; background: linear-gradient(135deg, rgba(56,189,248,0), rgba(129,140,248,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: background 0.45s;
  pointer-events: none;
}
.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56,189,248,0.3);
  box-shadow:
    0 0 30px rgba(56,189,248,0.12),
    0 0 60px rgba(129,140,248,0.06),
    0 20px 40px rgba(0,0,0,0.3);
}
.glass-card:hover::before {
  background: linear-gradient(135deg, rgba(56,189,248,0.4), rgba(129,140,248,0.4));
}

/* Card icon */
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(129,140,248,0.12));
  font-size: 1.5rem; transition: all 0.4s;
}
.glass-card:hover .card-icon {
  background: linear-gradient(135deg, rgba(56,189,248,0.25), rgba(129,140,248,0.25));
  box-shadow: 0 0 20px rgba(56,189,248,0.2);
}
.card-title { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.card-text { font-size: 0.95rem; color: #94a3b8; line-height: 1.6; }

/* ── Bento Grid ── */
.bento-grid {
  display: grid; gap: 20px; margin-top: 48px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
}
.bento-grid .glass-card:nth-child(1) { grid-column: span 2; }
.bento-grid .glass-card:nth-child(4) { grid-column: span 2; }

/* ── About / Value Props ── */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.value-card { text-align: center; padding: 28px 20px; }
.value-number {
  font-size: 3rem; font-weight: 900;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.value-label { font-size: 0.9rem; color: #94a3b8; margin-top: 8px; }

/* ── Stats / Counters ── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 48px 0; margin-top: 48px; border-top: 1px solid rgba(255,255,255,0.06);
}
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: #fff; }
.stat-number .accent { color: #38bdf8; }
.stat-label { font-size: 0.85rem; color: #64748b; margin-top: 4px; }

/* ── Process / How I Work ── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.process-step { text-align: center; position: relative; }
.process-step::after {
  content: '→'; position: absolute; right: -16px; top: 40px;
  color: rgba(56,189,248,0.3); font-size: 1.4rem;
}
.process-step:last-child::after { display: none; }
.step-num {
  width: 48px; height: 48px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(129,140,248,0.15));
  color: #38bdf8; font-weight: 800; font-size: 1.1rem;
  border: 1px solid rgba(56,189,248,0.2);
}
.process-step h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.process-step p { font-size: 0.85rem; color: #94a3b8; }

/* ── Contact / Lead Form ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 48px; }
.contact-info-list { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(56,189,248,0.1); color: #38bdf8; font-size: 1.2rem;
}
.contact-info-item h4 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.contact-info-item p { font-size: 0.9rem; color: #94a3b8; }
.contact-info-item a { color: #38bdf8; text-decoration: none; }
.contact-info-item a:hover { text-decoration: underline; }

.form-card { padding: 36px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #cbd5e1; margin-bottom: 8px; }
.form-input, .form-textarea {
  width: 100%; padding: 14px 18px; border-radius: 10px; font-size: 0.95rem;
  font-family: 'Inter', sans-serif; color: #e2e8f0;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s; outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,0.1);
  background: rgba(255,255,255,0.06);
}
.form-input::placeholder, .form-textarea::placeholder { color: #475569; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
  width: 100%; padding: 16px; border-radius: 10px; font-weight: 700; font-size: 1rem;
  font-family: 'Inter', sans-serif; color: #fff; border: none; cursor: pointer;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #38bdf8);
  background-size: 200% auto; animation: gradientShift 3s linear infinite;
  transition: all 0.3s; box-shadow: 0 4px 20px rgba(56,189,248,0.25);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(56,189,248,0.4); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Form feedback */
.form-feedback {
  margin-top: 16px; padding: 14px 18px; border-radius: 10px; font-size: 0.9rem;
  display: none; align-items: center; gap: 8px;
}
.form-feedback.success { display: flex; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }
.form-feedback.error { display: flex; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #f87171; }

/* ── Footer ── */
.footer {
  padding: 60px 0 24px; border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: #64748b; font-size: 0.9rem; margin-top: 12px; max-width: 280px; }
.footer h5 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #e2e8f0; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #64748b; text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: #38bdf8; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem; color: #475569;
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05); color: #94a3b8; text-decoration: none;
  transition: all 0.3s; font-size: 0.9rem;
}
.footer-socials a:hover { background: rgba(56,189,248,0.15); color: #38bdf8; }

/* ── Particles Canvas ── */
#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ── Service Cards Clickable ── */
.bento-grid .glass-card { cursor: pointer; }
.bento-grid .glass-card .card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: #38bdf8; font-size: 0.85rem; font-weight: 600;
  margin-top: 16px; opacity: 0.7; transition: opacity 0.3s, gap 0.3s;
}
.bento-grid .glass-card:hover .card-cta { opacity: 1; gap: 10px; }

/* ── Service Detail Modal ── */
.service-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(2,6,23,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.4s ease;
  padding: 24px;
}
.service-modal-overlay.active { opacity: 1; visibility: visible; }
.service-modal {
  background: linear-gradient(145deg, rgba(15,23,42,0.98), rgba(2,6,23,0.98));
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 20px; padding: 48px; max-width: 720px; width: 100%;
  max-height: 85vh; overflow-y: auto; position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 60px rgba(56,189,248,0.08), 0 20px 60px rgba(0,0,0,0.5);
}
.service-modal-overlay.active .service-modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 20px; right: 20px; width: 40px; height: 40px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05); color: #94a3b8; cursor: pointer;
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.modal-close:hover { background: rgba(239,68,68,0.15); color: #f87171; border-color: rgba(239,68,68,0.3); }
.modal-icon {
  width: 72px; height: 72px; border-radius: 18px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(129,140,248,0.15));
  font-size: 2rem;
}
.modal-title {
  font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 12px;
}
.modal-subtitle {
  font-size: 1.05rem; color: #94a3b8; margin-bottom: 32px; line-height: 1.7;
}
.modal-features { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.modal-features li {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; transition: all 0.3s;
}
.modal-features li:hover { background: rgba(56,189,248,0.05); border-color: rgba(56,189,248,0.15); }
.feature-icon {
  width: 40px; height: 40px; min-width: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(56,189,248,0.1), rgba(129,140,248,0.1));
  color: #38bdf8; font-size: 1rem;
}
.feature-text h5 { font-size: 0.95rem; font-weight: 600; color: #e2e8f0; margin-bottom: 4px; }
.feature-text p { font-size: 0.85rem; color: #64748b; line-height: 1.5; }
.modal-cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
  border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none;
  color: #fff; border: none; cursor: pointer;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  box-shadow: 0 4px 20px rgba(56,189,248,0.25); transition: all 0.3s;
}
.modal-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(56,189,248,0.4); }

/* Modal scrollbar */
.service-modal::-webkit-scrollbar { width: 6px; }
.service-modal::-webkit-scrollbar-track { background: transparent; }
.service-modal::-webkit-scrollbar-thumb { background: rgba(56,189,248,0.2); border-radius: 3px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-grid .glass-card:nth-child(1),
  .bento-grid .glass-card:nth-child(4) { grid-column: span 1; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; padding: 24px;
    background: rgba(2,6,23,0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(56,189,248,0.1);
  }
  .mobile-toggle { display: flex; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .bento-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .value-grid { grid-template-columns: 1fr; }
  .service-modal { padding: 28px 20px; }
  .modal-title { font-size: 1.4rem; }
  .modal-icon { width: 56px; height: 56px; font-size: 1.5rem; }
}
