/* =========================================================================
   NOVATECH SOLUTIONS — DESIGN SYSTEM
   Signature: the "Nova Core" — a layered radial burst used in the hero,
   the page loader, and as a small pulsing motif beside section eyebrows.
   Palette: deep-space indigo + warm ember + cool cyan (not the generic
   cream/terracotta or near-black/acid-green defaults).
   ========================================================================= */

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

/* ---- Design tokens ---- */
:root {
  /* Core palette */
  --nova-void:      #0A0B14;
  --nova-surface:   #13152A;
  --nova-surface-2: #191C36;
  --nova-indigo:    #5B4FE9;
  --nova-indigo-2:  #8B7FFF;
  --nova-ember:     #FF7A45;
  --nova-ember-2:   #FFB088;
  --nova-cyan:      #3FE0C5;
  --nova-mist:      #EDEFFB;

  /* Semantic — dark theme (default) */
  --bg:            var(--nova-void);
  --bg-elevated:   var(--nova-surface);
  --bg-elevated-2: var(--nova-surface-2);
  --text:          #E7E8F5;
  --text-muted:    #9497B8;
  --border:        rgba(231, 232, 245, 0.10);
  --glass-bg:      rgba(19, 21, 42, 0.55);
  --glass-border:  rgba(139, 127, 255, 0.18);

  --accent:        var(--nova-indigo);
  --accent-soft:   var(--nova-indigo-2);
  --accent-warm:   var(--nova-ember);

  /* Type scale */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-glow: 0 0 80px rgba(91, 79, 233, 0.25);
  --ease-nova: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg:            var(--nova-mist);
  --bg-elevated:   #FFFFFF;
  --bg-elevated-2: #F4F5FC;
  --text:          #12142A;
  --text-muted:    #565A7E;
  --border:        rgba(18, 20, 42, 0.08);
  --glass-bg:      rgba(255, 255, 255, 0.65);
  --glass-border:  rgba(91, 79, 233, 0.14);
  --shadow-glow:   0 0 80px rgba(91, 79, 233, 0.12);
}

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s var(--ease-nova), color 0.4s var(--ease-nova);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 14px;
}
.eyebrow .nova-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--nova-ember);
  box-shadow: 0 0 0 4px rgba(255, 122, 69, 0.18);
  animation: nova-pulse 2.4s ease-in-out infinite;
}
@keyframes nova-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(255, 122, 69, 0.18); }
  50%      { transform: scale(1.3); box-shadow: 0 0 0 8px rgba(255, 122, 69, 0.06); }
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.35s var(--ease-nova), box-shadow 0.35s var(--ease-nova), background 0.3s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--nova-ember), #FF9A6C);
  color: #16131A;
  box-shadow: 0 8px 24px rgba(255, 122, 69, 0.28);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(255, 122, 69, 0.38); }
.btn-outline {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent-soft); transform: translateY(-3px); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---- Glassmorphism utility ---- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ---- Page loader ---- */
#nova-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--nova-void);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease-nova), visibility 0.6s;
}
#nova-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.nova-core-loader {
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--nova-ember-2), var(--nova-indigo) 60%, transparent 75%);
  position: relative;
  animation: nova-spin 1.6s linear infinite;
}
.nova-core-loader::after {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  border: 1.5px solid var(--nova-cyan); opacity: 0.5;
  animation: nova-ring 1.6s ease-in-out infinite;
}
@keyframes nova-spin { to { transform: rotate(360deg); } }
@keyframes nova-ring { 0%,100% { transform: scale(0.9); opacity: 0.6; } 50% { transform: scale(1.15); opacity: 0.15; } }

/* ---- Custom cursor ---- */
.nova-cursor {
  position: fixed; top: 0; left: 0; width: 18px; height: 18px;
  border-radius: 50%; border: 1.5px solid var(--nova-cyan);
  pointer-events: none; z-index: 9998; mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s;
}
.nova-cursor.is-active { width: 40px; height: 40px; background: rgba(63, 224, 197, 0.15); }
@media (hover: none) { .nova-cursor { display: none; } }

/* ---- Particles / hero canvas host ---- */
#particles-hero { position: absolute; inset: 0; z-index: 0; opacity: 0.55; }

/* ---- Navbar ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 22px 0; transition: padding 0.35s var(--ease-nova), background 0.35s;
}
.navbar.is-scrolled {
  padding: 14px 0;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.navbar-brand .nova-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: radial-gradient(circle at 30% 30%, var(--nova-ember-2), var(--nova-indigo) 70%);
  box-shadow: 0 0 18px rgba(91, 79, 233, 0.5);
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--text-muted); position: relative; padding: 4px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: linear-gradient(90deg, var(--nova-ember), var(--nova-indigo));
  border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--text);
  transition: transform 0.4s var(--ease-nova);
}
.theme-toggle:hover { transform: rotate(20deg); }
.nav-burger { display: none; flex-direction: column; gap: 5px; width: 26px; }
.nav-burger span { height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 120px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(91, 79, 233, 0.22), transparent 60%),
    radial-gradient(500px circle at 85% 75%, rgba(255, 122, 69, 0.15), transparent 60%);
  z-index: 0;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-title { font-size: clamp(2.6rem, 5.4vw, 4.4rem); margin-bottom: 22px; }
.hero-title .typed-role { background: linear-gradient(90deg, var(--nova-ember), var(--nova-indigo-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 520px; margin-bottom: 38px; }
.hero-cta { display: flex; gap: 16px; margin-bottom: 56px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 40px; }
.hero-meta div strong { display: block; font-family: var(--font-display); font-size: 1.6rem; }
.hero-meta div span { font-size: 0.82rem; color: var(--text-muted); }

.nova-core-stage { position: relative; z-index: 1; aspect-ratio: 1; }
#nova-core-3d { width: 100%; height: 100%; }

/* Floating blobs (used behind sections for ambient depth) */
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px);
  opacity: 0.35; z-index: 0; pointer-events: none;
}
.blob-indigo { background: var(--nova-indigo); }
.blob-ember  { background: var(--nova-ember); }
.blob-cyan   { background: var(--nova-cyan); }
@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(30px, -40px) scale(1.08); }
}
.blob-anim { animation: float-blob 12s ease-in-out infinite; }

.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted);
  letter-spacing: 0.1em; z-index: 2;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--nova-cyan), transparent); animation: scroll-line 1.8s ease-in-out infinite; }
@keyframes scroll-line { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---- Logo strip ---- */
.logo-strip { padding: 50px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logo-strip .swiper-slide { display: flex; align-items: center; justify-content: center; opacity: 0.55; filter: grayscale(1); transition: opacity 0.3s, filter 0.3s; }
.logo-strip .swiper-slide:hover { opacity: 1; filter: grayscale(0); }
.logo-strip .swiper-slide img { max-height: 34px; width: auto; }

/* ---- Overview / split section ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.stat-pill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
.stat-pill { padding: 22px; border-radius: var(--radius-md); }
.stat-pill strong { display: block; font-family: var(--font-display); font-size: 2rem; background: linear-gradient(90deg, var(--nova-cyan), var(--nova-indigo-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-pill span { font-size: 0.82rem; color: var(--text-muted); }

/* ---- Service cards ---- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  padding: 32px 26px; border-radius: var(--radius-md);
  transition: transform 0.4s var(--ease-nova), border-color 0.4s;
  transform-style: preserve-3d;
}
.service-card:hover { border-color: var(--accent-soft); }
.service-card .icon-badge {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(91,79,233,0.18), rgba(255,122,69,0.14));
  color: var(--nova-cyan);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 18px; }
.service-card .card-link { font-size: 0.85rem; font-weight: 600; color: var(--accent-soft); display: inline-flex; align-items: center; gap: 6px; }

/* ---- Project cards / slider ---- */
.project-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; height: 420px; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-nova); }
.project-card:hover img { transform: scale(1.08); }
.project-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,11,20,0.92) 0%, rgba(10,11,20,0.15) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 30px;
}
.project-card-overlay .tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--nova-cyan); text-transform: uppercase; margin-bottom: 8px; }
.project-card-overlay h3 { color: #fff; font-size: 1.3rem; }

/* ---- Process steps (legitimate sequence => numbered) ---- */
.process-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: nova-step; }
.process-step { position: relative; padding: 30px 24px; border-radius: var(--radius-md); }
.process-step::before {
  counter-increment: nova-step; content: counter(nova-step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--nova-ember);
  display: block; margin-bottom: 18px;
}

/* ---- Testimonials ---- */
.testimonial-card { padding: 34px; border-radius: var(--radius-md); height: 100%; }
.testimonial-card .stars { color: var(--nova-ember); margin-bottom: 16px; font-size: 0.9rem; }
.testimonial-card p.quote { font-size: 1.02rem; margin-bottom: 26px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; font-size: 0.92rem; }
.testimonial-author span { font-size: 0.78rem; color: var(--text-muted); }

/* ---- Blog cards ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { border-radius: var(--radius-md); overflow: hidden; }
.blog-card .thumb { height: 200px; overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.blog-card:hover .thumb img { transform: scale(1.06); }
.blog-card .body { padding: 24px; }
.blog-card .meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.blog-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.blog-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ---- CTA band ---- */
.cta-band {
  border-radius: var(--radius-lg); padding: 72px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(91,79,233,0.16), rgba(255,122,69,0.10));
  border: 1px solid var(--glass-border);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.cta-band p { color: var(--text-muted); max-width: 520px; margin: 0 auto 34px; }

/* ---- Footer ---- */
.site-footer { padding: 90px 0 30px; border-top: 1px solid var(--border); position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 60px; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin: 18px 0 22px; max-width: 300px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; color: var(--text-muted); }
.footer-col a { display: block; font-size: 0.9rem; color: var(--text); opacity: 0.82; margin-bottom: 12px; }
.footer-col a:hover { opacity: 1; color: var(--accent-soft); }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.newsletter-form { display: flex; gap: 10px; margin-top: 18px; }
.newsletter-form input { flex: 1; padding: 12px 16px; border-radius: 100px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text); font-size: 0.88rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-muted); flex-wrap: wrap; gap: 12px; }

/* ---- Forms (contact, admin login) ---- */
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.85rem; margin-bottom: 8px; color: var(--text-muted); }
.form-control {
  width: 100%; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem; transition: border-color 0.3s;
}
.form-control:focus { outline: none; border-color: var(--accent-soft); }
textarea.form-control { resize: vertical; min-height: 140px; }
.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 26px; font-size: 0.92rem; }
.alert-success { background: rgba(63, 224, 197, 0.12); border: 1px solid rgba(63, 224, 197, 0.3); color: var(--nova-cyan); }
.alert-error { background: rgba(255, 122, 69, 0.12); border: 1px solid rgba(255, 122, 69, 0.3); color: var(--nova-ember); }

/* ---- Simple inner-page hero (About / Services / Contact / 404) ---- */
.page-hero { padding: 170px 0 80px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 18px; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--accent-soft); }

/* ---- 404 ---- */
.error-stage { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 10rem); line-height: 1; background: linear-gradient(135deg, var(--nova-ember), var(--nova-indigo-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Roadmap / Company Timeline (About page) ---- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--nova-ember), var(--nova-indigo) 60%, transparent);
}
.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -40px; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--nova-ember);
  display: flex; align-items: center; justify-content: center;
}
.timeline-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--nova-ember); }
.timeline-item.is-milestone .timeline-dot { border-color: var(--nova-indigo); }
.timeline-item.is-milestone .timeline-dot::after { background: var(--nova-indigo); }
.timeline-content { padding: 24px 28px; border-radius: var(--radius-md); }
.timeline-year {
  display: inline-block; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; color: var(--nova-ember); margin-bottom: 8px;
}
.timeline-content h3 { font-size: 1.05rem; margin-bottom: 8px; }
.timeline-content p { color: var(--text-muted); font-size: 0.92rem; }
@media (max-width: 600px) {
  .timeline { padding-left: 32px; }
  .timeline-dot { left: -32px; }
}

/* ---- Utility ---- */
.text-muted { color: var(--text-muted); }
.mt-40 { margin-top: 40px; }
.reveal-up { opacity: 0; transform: translateY(40px); }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-track { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .nova-core-stage { display: none; }
  .nav-links { position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px;
    flex-direction: column; justify-content: center; padding: 40px; transition: right 0.4s var(--ease-nova); }
  .nav-links.is-open { right: 0; }
  .nav-burger { display: flex; }
  .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .service-grid, .stat-pill-grid, .process-track { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .cta-band { padding: 48px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
