/* ============================================
   ASSET 360 — Global CSS Design System
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ─── Design Tokens ─── */
:root {
  --blue:        #006bab;
  --blue-light:  #0084d4;
  --green:       #5ab136;
  --green-light: #6fd142;
  --dark-bg:     #080d14;
  --dark-surface:#0e1622;
  --dark-card:   #121d2e;
  --dark-border: rgba(255,255,255,0.08);
  --dark-text:   #e8edf5;
  --dark-muted:  #8a9bb5;
  --light-bg:    #f4f7fc;
  --light-surface:#ffffff;
  --light-card:  #ffffff;
  --light-border:rgba(0,107,171,0.12);
  --light-text:  #0e1622;
  --light-muted: #334155;
  --gradient:    linear-gradient(135deg, var(--blue), var(--green));
  --gradient-r:  linear-gradient(135deg, var(--green), var(--blue));
  --glass-bg:    rgba(255,255,255,0.05);
  --glass-bg-l:  rgba(255,255,255,0.7);
  --shadow:      0 8px 32px rgba(0,107,171,0.18);
  --radius:      16px;
  --radius-sm:   10px;
  --nav-h:       72px;
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  transition: background-color var(--transition), color var(--transition);
}

/* ─── DARK MODE (default) ─── */
body[data-theme="dark"] {
  background-color: var(--dark-bg);
  color: var(--dark-text);
  --surface: var(--dark-surface);
  --card-bg: var(--dark-card);
  --border:  var(--dark-border);
  --muted:   var(--dark-muted);
  --text:    var(--dark-text);
}

/* ─── LIGHT MODE ─── */
body[data-theme="light"] {
  background-color: var(--light-bg);
  color: var(--light-text);
  --surface: var(--light-surface);
  --card-bg: var(--light-card);
  --border:  var(--light-border);
  --muted:   var(--light-muted);
  --text:    var(--light-text);
}

/* ─── Typography ─── */
h1,h2,h3,h4,h5,h6 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.2rem; }
p  { color: var(--muted); }
.lead { font-weight: 400; }

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green); }

img { max-width: 100%; }

/* ─── Gradient Text ─── */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ─── */
.btn-primary-custom {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary-custom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green), var(--blue));
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,107,171,0.4); color: #fff; }
.btn-primary-custom:hover::before { opacity: 1; }
.btn-primary-custom span { position: relative; z-index: 1; }

.btn-outline-custom {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.btn-outline-custom:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,107,171,0.3);
}

/* ─── Navbar ─── */
#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: all var(--transition);
  padding: 0 24px;
}

body[data-theme="dark"] #mainNav {
  background: rgba(8,13,20,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
}
body[data-theme="light"] #mainNav {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--light-border);
}
#mainNav.scrolled {
  height: 60px;
  box-shadow: 0 4px 30px rgba(0,107,171,0.15);
}

.navbar-brand img { height: 40px; transition: height var(--transition); }
#mainNav.scrolled .navbar-brand img { height: 32px; }

.nav-link-custom {
  color: var(--text) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 14px !important;
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
}
.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 14px; right: 14px;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-link-custom:hover::after,
.nav-link-custom.active::after { transform: scaleX(1); }
.nav-link-custom:hover { color: var(--blue-light) !important; }

/* Theme Toggle */
#themeToggle {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.1rem;
}
#themeToggle:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  transform: rotate(20deg);
}

/* ─── Hero ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
#vanta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(90,177,54,0.15);
  border: 1px solid rgba(90,177,54,0.3);
  color: var(--green);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.hero-cta-group { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.hero-scroll-indicator .scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── Section Styles ─── */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

.section-tag {
  display: inline-block;
  background: rgba(0,107,171,0.12);
  color: var(--blue);
  border: 1px solid rgba(0,107,171,0.25);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

body[data-theme="dark"] .section-alt { background: var(--dark-surface); }
body[data-theme="light"] .section-alt { background: #edf1f8; }

/* ─── Cards ─── */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,107,171,0.3);
  box-shadow: var(--shadow);
}
.glass-card:hover::before { transform: scaleX(1); }

body[data-theme="light"] .glass-card {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,107,171,0.07);
}

/* ─── Product Cards ─── */
.product-icon-wrap {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 20px;
  flex-shrink: 0;
}

/* ─── Stats ─── */
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { font-size: 0.9rem; color: var(--muted); font-weight: 500; }

/* ─── Steps / How It Works ─── */
.step-number {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0,107,171,0.4);
}

/* ─── Image Placeholders ─── */
.img-placeholder {
  background: linear-gradient(135deg, rgba(0,107,171,0.15), rgba(90,177,54,0.1));
  border: 2px dashed rgba(0,107,171,0.3);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
.img-placeholder i { font-size: 2rem; color: var(--blue); opacity: 0.6; }

/* ─── Parallax CTA Banner ─── */
.parallax-cta {
  background: linear-gradient(135deg, var(--blue) 0%, #004d80 50%, var(--green) 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}
.parallax-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ─── Forms ─── */
.form-control-custom {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 14px 18px;
  font-size: 0.95rem;
  width: 100%;
  transition: all var(--transition);
  outline: none;
}
.form-control-custom:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,107,171,0.15);
}
.form-control-custom::placeholder { color: var(--muted); }
.form-label-custom {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}

/* ─── Footer ─── */
#footer {
  padding: 80px 0 30px;
  position: relative;
}
body[data-theme="dark"] #footer { background: #050a10; border-top: 1px solid var(--dark-border); }
body[data-theme="light"] #footer { background: #e8eef6; border-top: 1px solid var(--light-border); }

.footer-logo img { height: 44px; }
.footer-link {
  color: var(--muted) !important;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--blue) !important; }
.footer-social {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all var(--transition);
  font-size: 0.9rem;
}
.footer-social:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-3px); }
.footer-divider { border-color: var(--border); }

/* ─── Team Cards ─── */
.team-card {
  text-align: center;
}
.team-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid;
  border-image: var(--gradient) 1;
  border-radius: 50%;
  position: relative;
}
.team-avatar-inner {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,107,171,0.2), rgba(90,177,54,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--blue);
}
.team-role {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Page Header ─── */
.page-header {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(0,107,171,0.2) 0%, transparent 70%);
}
body[data-theme="dark"] .page-header { background: var(--dark-surface); }
body[data-theme="light"] .page-header { background: linear-gradient(180deg, #e8f0fa 0%, #f4f7fc 100%); }

/* ─── Tab Pills ─── */
.tab-pill {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}
.tab-pill.active,
.tab-pill:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0,107,171,0.3);
}

/* ─── Alert / Toast ─── */
.toast-custom {
  position: fixed;
  bottom: 30px; right: 30px;
  background: var(--gradient);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 9999;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
}
.toast-custom.show { transform: translateY(0); opacity: 1; }

/* ─── Mobile Hamburger ─── */
.navbar-toggler-custom {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  width: 42px; height: 42px;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.navbar-toggler-custom span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
  .navbar-toggler-custom { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    transform: translateY(-110%);
    transition: transform var(--transition);
    z-index: 999;
  }
  .nav-menu.open { transform: translateY(0); }
  .section { padding: 70px 0; }
  .hero-cta-group { justify-content: center; }
}

@media (max-width: 576px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .glass-card { padding: 24px; }
}

/* ─── Utility ─── */
.text-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.border-gradient { border: 2px solid; border-image: var(--gradient) 1; }
.divider { height: 1px; background: var(--border); margin: 40px 0; }
.muted { color: var(--muted); }
.fw-600 { font-weight: 600; }
.mt-n1 { margin-top: -1px; }

/* ─── Animations ─── */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.animate-float { animation: float 5s ease-in-out infinite; }
.animate-fade-up { animation: fadeUp 0.6s ease forwards; }
