/* ============================================
   Adroiteck Professional Services — Brand CSS
   ============================================ */

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

:root {
  --bg: #0a0b10;
  --bg-alt: #0f1017;
  --surface: #14161f;
  --surface-hover: #1a1d29;
  --border: #1f2231;
  --border-light: #2a2e3d;
  --text: #e8eaf0;
  --text-muted: #7b8098;
  --text-dim: #505468;
  --accent: #6c63ff;
  --accent-light: #8b84ff;
  --accent-soft: rgba(108, 99, 255, 0.08);
  --accent-glow: rgba(108, 99, 255, 0.20);
  --popular: #f59e0b;
  --popular-glow: rgba(245, 158, 11, 0.12);
  --green: #22c55e;
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { color: var(--text-muted); max-width: 680px; }

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #8b84ff 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: 12px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent-soft);
}
.btn-arrow::after { content: ' \2192'; }

/* ---- NAVIGATION ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 32px;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
nav.scrolled { background: rgba(10, 11, 16, 0.95); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}
.nav-brand span { color: var(--accent-light); }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: var(--accent-soft);
}
.nav-cta {
  padding: 10px 24px !important;
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--accent-light) !important;
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(10, 11, 16, 0.98);
    flex-direction: column;
    padding: 16px 32px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; width: 100%; }
}

/* ---- HERO SECTION ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px;
  text-align: center;
  background: transparent;
}

.hero-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-stars canvas { display: block; }
nav, section, footer { position: relative; z-index: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(108, 99, 255, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-light);
  background: var(--accent-soft);
  border: 1px solid rgba(108, 99, 255, 0.15);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-title {
  margin-bottom: 24px !important;
  line-height: 1.05 !important;
}

.hero-name-line {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  display: block;
  filter: drop-shadow(0 0 30px rgba(108, 99, 255, 0.35)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.hero-accent {
  color: var(--accent-light);
  font-weight: 900;
}

/* Brighter gradient for hero title specifically */
.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #b0aaff 40%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem !important;
  line-height: 1.7 !important;
  color: #9ca0b8 !important;
  margin-bottom: 0 !important;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hero-emphasis {
  color: var(--text);
}

.hide-mobile { display: inline; }

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 48px;
  margin: 40px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-stat-text {
  font-size: 1.6rem;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: lowercase;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

/* Hero Links */
.hero-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted) !important;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s;
}

.hero-link:hover {
  color: #fff !important;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Scroll Indicator */
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim) !important;
  text-decoration: none;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 900px) {
  .hero { padding-top: 100px; min-height: auto; padding-bottom: 40px; }
  .hero-content { max-width: 100%; }
  .hero-name-line { font-size: clamp(2.8rem, 12vw, 4.5rem); }
  .hero-stats { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .hero-links { flex-wrap: wrap; justify-content: center; }
  .hide-mobile { display: none; }
}

@media (max-width: 640px) {
  .hero-stats { gap: 16px; }
  .hero-stat-number { font-size: 1.3rem; }
  .hero-badge { font-size: 0.65rem; padding: 6px 16px; }
}

/* ---- SECTIONS ---- */
section { padding: 120px 0; }
section:nth-child(even) { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header p {
  margin: 16px auto 0;
  font-size: 1.05rem;
}

/* ---- CARDS ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all 0.3s;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.92rem; margin-bottom: 20px; }
.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link:hover { gap: 10px; }

/* ---- STATS BAR ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
}
.stat {
  text-align: center;
}
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}
.stat-number span { color: var(--accent-light); }
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 640px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ---- DIFFERENTIATORS ---- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.diff-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}
.diff-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.diff-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
}
.diff-card h3 { margin-bottom: 12px; }

@media (max-width: 900px) {
  .diff-grid { grid-template-columns: 1fr; }
}

/* ---- INDUSTRIES ---- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.industry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s;
}
.industry-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.industry-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.industry-card h4 { margin-bottom: 8px; font-size: 1.05rem; }
.industry-card p { font-size: 0.85rem; }

/* ---- CTA SECTION ---- */
.cta-section {
  text-align: center;
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { margin-bottom: 16px; position: relative; }
.cta-section p { margin: 0 auto 40px; position: relative; }

/* ---- SERVICE DETAIL ---- */
.service-hero {
  padding: 160px 0 80px;
  position: relative;
}
.service-hero h1 { margin-bottom: 20px; }
.service-hero p { font-size: 1.15rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}
.feature-item:hover { border-color: var(--accent); }
.feature-check {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---- CASE STUDIES ---- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.case-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.case-image {
  height: 200px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.case-body { padding: 28px; }
.case-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.case-body h3 { margin-bottom: 10px; }
.case-body p { font-size: 0.9rem; margin-bottom: 16px; }
.case-metrics {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.case-metric strong {
  display: block;
  font-size: 1.2rem;
  color: var(--green);
}
.case-metric span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- CONTACT FORM ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 24px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-item p { font-size: 0.88rem; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---- FOOTER ---- */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.footer-brand span { color: var(--accent-light); }
footer p { font-size: 0.88rem; max-width: 320px; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ---- PAGE HERO (non-home) ---- */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero h1 { position: relative; margin-bottom: 16px; }
.page-hero p { position: relative; margin: 0 auto; font-size: 1.1rem; }

/* ---- 404 ---- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 72px;
}
.error-code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

/* ---- FORM SUCCESS ---- */
.form-success {
  display: none;
  text-align: center;
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--green);
  border-radius: var(--radius);
}
.form-success.show { display: block; }
.form-success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* ---- SCROLL TO TOP ---- */
.scroll-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { transform: translateY(-3px); }
