/* ================================================================
   ANCROVIA TECHNOLOGIES PRIVATE LIMITED
   Main Stylesheet – Reset, Base, Layout, Utilities
   ================================================================ */

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, var(--font-size-6xl)); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--font-size-4xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--font-size-2xl)); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p { color: var(--text-color); line-height: 1.75; }

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

/* ---- Container ---- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

/* ---- Sections ---- */
.section       { padding: var(--spacing-4xl) 0; }
.section-sm    { padding: var(--spacing-3xl) 0; }
.section-lg    { padding: var(--spacing-5xl) 0; }
.section-dark  { background: var(--dark-bg); }
.section-alt   { background: var(--surface-alt); }
.section-white { background: var(--surface-color); }

/* ---- Section Header ---- */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: linear-gradient(135deg, rgba(26,86,219,0.10) 0%, rgba(79,70,229,0.10) 100%);
  color: var(--primary-color);
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 7px 18px;
  border-radius: var(--border-radius-full);
  border: 1px solid rgba(26, 86, 219, 0.22);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  box-shadow: 0 2px 8px rgba(26,86,219,0.10);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, var(--font-size-4xl));
  color: var(--heading-color);
  margin-bottom: var(--spacing-md);
  font-weight: 800;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-title-white   { color: white !important; }
.section-subtitle-white{ color: rgba(255, 255, 255, 0.75) !important; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  position: relative;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-lg);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--primary-color);
  border-color: white;
}
.btn-white:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-color);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--primary-50);
  color: var(--primary-dark);
}

.btn-lg {
  padding: 16px 40px;
  font-size: var(--font-size-lg);
  border-radius: var(--border-radius-md);
}
.btn-sm {
  padding: 8px 20px;
  font-size: var(--font-size-sm);
}

/* ---- Grid ---- */
.grid   { display: grid; gap: var(--spacing-xl); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Card Base ---- */
.card {
  background: var(--surface-color);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(26, 86, 219, 0.15);
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-primary  { background: var(--primary-100); color: var(--primary-color); border: 1px solid var(--primary-200); }
.badge-secondary{ background: rgba(79, 70, 229, 0.10); color: var(--secondary-color); border: 1px solid rgba(79, 70, 229, 0.20); }
.badge-accent   { background: rgba(6, 182, 212, 0.10); color: var(--accent-dark); border: 1px solid rgba(6, 182, 212, 0.20); }
.badge-success  { background: var(--success-light); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.20); }

/* ---- Utility Classes ---- */
.text-center   { text-align: center; }
.text-left     { text-align: left; }
.text-right    { text-align: right; }
.text-primary  { color: var(--primary-color) !important; }
.text-secondary{ color: var(--secondary-color) !important; }
.text-accent   { color: var(--accent-color) !important; }
.text-muted    { color: var(--text-muted) !important; }
.text-white    { color: white !important; }
.text-dark     { color: var(--heading-color) !important; }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.items-center{ align-items: center; }
.flex-wrap   { flex-wrap: wrap; }

.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

.mt-sm  { margin-top: var(--spacing-sm); }
.mt-md  { margin-top: var(--spacing-md); }
.mt-lg  { margin-top: var(--spacing-lg); }
.mt-xl  { margin-top: var(--spacing-xl); }
.mt-2xl { margin-top: var(--spacing-2xl); }
.mb-sm  { margin-bottom: var(--spacing-sm); }
.mb-md  { margin-bottom: var(--spacing-md); }
.mb-lg  { margin-bottom: var(--spacing-lg); }
.mb-xl  { margin-bottom: var(--spacing-xl); }
.mb-2xl { margin-bottom: var(--spacing-2xl); }

.w-full     { width: 100%; }
.max-w-600  { max-width: 600px; margin-left: auto; margin-right: auto; }
.max-w-800  { max-width: 800px; margin-left: auto; margin-right: auto; }

.rounded     { border-radius: var(--border-radius); }
.rounded-lg  { border-radius: var(--border-radius-lg); }
.rounded-full{ border-radius: var(--border-radius-full); }

.divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--spacing-xl) 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ---- Responsive Breakpoints ---- */
@media (max-width: 1024px) {
  .container { padding: 0 var(--spacing-lg); }
  .grid-4    { grid-template-columns: repeat(2, 1fr); }
  .grid-3    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container  { padding: 0 var(--spacing-md); }
  .section    { padding: var(--spacing-3xl) 0; }
  .section-lg { padding: var(--spacing-4xl) 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-title { font-size: var(--font-size-3xl); }
  .btn-lg    { padding: 14px 28px; font-size: var(--font-size-base); }
}

@media (max-width: 480px) {
  h1 { font-size: var(--font-size-4xl); }
  h2 { font-size: var(--font-size-3xl); }
  .section-header { margin-bottom: var(--spacing-2xl); }
  .section    { padding: var(--spacing-2xl) 0; }
  .section-sm { padding: var(--spacing-xl) 0; }
  .section-lg { padding: var(--spacing-3xl) 0; }
}
